- 博客(4)
- 收藏
- 关注
原创 HDU2665之划分树
第一种 #include #include #include #include #include #include #include #include #include #define INF 999999999 using namespace std; const int MAX=100001; //s表示原数组,tree表示第i层元素序列,sum表示第i层L~j分到左子树的元素个数
2013-02-28 18:49:11 1099 1
原创 hdu2660简单DP
#include #include #include #include #include #include #include #include #include #define INF 999999999 using namespace std; const int MAX=1001; int dp[21][MAX]; int s[21][2]; int main(){ int n,k,w,
2013-02-26 20:51:35 615
原创 hdu2612简单BFS
本以为用BFS会超时,没想到竟然过了 http://acm.hdu.edu.cn/showproblem.php?pid=2612 #include #include #include #include #include #include #include #include #include #include #define INF 999999999 using namespac
2013-02-25 21:01:06 838
原创 http://codeforces.com/contest/276/problem/C
开学的第一次CF就这样失败了,一道简单的DP竟然没做出来,看来寒假真是疯了。。。。。 The little girl loves the problems on array queries very much. One day she came across a rather well-known problem: you've got an array of
2013-02-25 09:38:31 703
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人