- 博客(5)
- 收藏
- 关注
原创 zoj2913 Bus Pass BFS
ZOJ - 2913 Bus Pass Time Limit: 5000MS Memory Limit: 32768KB 64bit IO Format: %lld & %llu Submit Status Description You travel a lot by bus and the costs of al
2015-11-18 21:12:52 390
原创 poj3928 树状数组应用
Ping pong Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 3928 Description N(3<=N<=20000) ping pong players live along a west-
2015-11-14 14:08:58 590
原创 ZOJ2972-Hurdles of 110m
dp[i][j],跨过i个栏,用了j点体力时的最小时间 dp[0][j]=0 #include #include #include #include using namespace std; #define INF 0x3f3f3f3f int main() { #ifdef TEST freopen("in.in","r",stdin); #endif int t,n,m; int t
2015-11-07 21:04:45 372
原创 ZOJ2975 Kinds of Fuwas
枚举 i 列和 j 列,统计(第 k 行 i 列) 和 (第 k 行 j 列) 相等的数目,再用组合公式算出符合的矩形的个数 #include #include int fun(char c) { if(c=='B') return 0; if(c=='J') return 1; if(c=='H') return 2; if(c=='Y') return 3; return
2015-11-07 18:50:46 286
原创 hud5524 Subtrees 二叉树中不同节点数的字数个个数
用set储存子数的节点数,set中元素的数目及为结果 #include #include #include using namespace std; set s; long long a[65];//每层节点的个数 void dfs(long long n,int D)//n为当前节点数,D为当前层数 { if(D==0 || n==0 || s.count(n)) return; s.in
2015-11-06 21:55:42 291
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人