原创 【枚舉計數】HDU5995Kblack loves flag【BestCoder Round #90】

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=5995 #include<iostream> #include<cstdio> #include<cstring> using namesp

原创 【STL】HDU6019MG loves gold【 BestCoder Round #93】

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=6019 這個題目聽說有很有的AC姿勢哦0.0 由於一把鏟子不能挖掘同種顏色的金克拉,我們只要線性掃描序列即可。 按照貪心思想,若當前顏色

原创 【水題】HDU4931Happy Three Friends【BestCoder Round #4】

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=4931 #include<iostream> #include<algorithm> using namespace std; int a[1

原创 【思維/DP】HDU6016Count the Sheep【BestCoder Round #92】

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=6016 方法一(思維):四隻羊,中間開始枚舉; #include<bits/stdc++.h> using namespace std; co

原创 【結構體排序】HDU6015Skip the Class【BestCoder Round #92】

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=6015 #include<iostream> #include<algorithm> using namespace std; const i

原创 【計數】HDU5804Price List【BestCoder Round #86】

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=5804 #include<bits/stdc++.h> using namespace std; int main() { int t

原创 【動態規劃】HDU1081To The Max

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=1081 /* 將維度合成一列 */ #include<bits/stdc++.h> using namespace std; cons

原创 【枚舉】HDU5944Fxx and string【BestCoder Round #89】

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=5944 #include<iostream> using namespace std; int main() { int t;

原创 【枚舉計數】HDU5907Find Q【BestCoder Round #88】

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=5907 #include<bits/stdc++.h> using namespace std; int main() { int t

原创 【動態規劃】HDU1559最大子矩陣

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=1559 /* 指定大小的最大子矩陣和 遍歷每一個指定大小的矩陣 */ #include<bits/stdc++.h> usin

原创 【枚舉】HDU5104Primes Problem【BestCoder Round #18】

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=5104 #include<bits/stdc++.h> using namespace std; const int N=10005; int

原创 【動態規劃】HDU1244Max Sum Plus Plus Plus

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=1244 這個題目要注意,n個數都是正整數。注意如果多一個段,狀態怎麼轉移 #include<bits/stdc++.h> using name

原创 【結構體排序】HDU1084 What Is Your Grade?

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=1084 #include<bits/stdc++.h> using namespace std; const int N=1050; stru

原创 【貪心/01揹包】HDU1735字數統計

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=1735 #include<bits/stdc++.h> using namespace std; const int N=10050; con

原创 線段樹專訓

線段樹專訓 訓練時間:長期 author:wlxsq Problem List BZOJ1798: 維護序列 Problem link URAL1147: Shaping Regions Problem link POJ3