CRB and QueriesTime Limit: 12000/6000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1602Accepted Submission(s): 409P...
分类:
其他好文 时间:
2015-09-11 19:24:15
阅读次数:
310
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5412CRB and QueriesDescriptionThere are $N$ boys in CodeLand. Boy i has his coding skill $A_{i}$. CRB wa...
分类:
其他好文 时间:
2015-09-10 00:26:56
阅读次数:
177
假设在当前状态我们第i堆糖果分别取了cnt[i]个,那么篮子里以及口袋里糖果的个数都是可以确定下来的。所以就可以使用记忆化搜索。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int maxn = 45; ...
分类:
其他好文 时间:
2015-09-02 00:17:51
阅读次数:
180
题目传送门题意:n个人发糖果,B 比 A 多 C的糖果,问最后第n个人比第一个人多多少的糖果分析:最短路,Dijkstra 优先队列优化可过,SPFA竟然要用栈,队列超时!代码:/************************************************* Author ...
分类:
其他好文 时间:
2015-09-01 21:14:26
阅读次数:
168
题目:
CRB and Candies
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 652 Accepted Submission(s): 324
Problem Description
CRB has N...
分类:
其他好文 时间:
2015-08-31 13:37:48
阅读次数:
145
题目:
CRB and His Birthday
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 748 Accepted Submission(s): 395
Problem Description
Toda...
分类:
其他好文 时间:
2015-08-31 13:36:18
阅读次数:
150
Candy
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 1829 Accepted Submission(s): 500
Problem Description
There are N candies a...
分类:
其他好文 时间:
2015-08-31 11:53:30
阅读次数:
244
CRB and QueriesTime Limit: 12000/6000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 3233Accepted Submission(s): 148P...
分类:
其他好文 时间:
2015-08-30 21:06:04
阅读次数:
128
链接:http://acm.hdu.edu.cn/showproblem.php?pid=5414Problem DescriptionCRB has two stringssandt.In each step, CRB can select arbitrary charactercofsand i...
分类:
其他好文 时间:
2015-08-28 19:18:49
阅读次数:
186
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5410Problem DescriptionToday is CRB's birthday. His mom decided to buy many presents for her lovely son...
分类:
其他好文 时间:
2015-08-27 18:05:58
阅读次数:
164