The Dragon of LoowaterOnce upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem.The shores of Rellau Creek in central...
分类:
其他好文 时间:
2015-02-04 21:36:36
阅读次数:
251
Dragon Balls
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3461 Accepted Submission(s): 1348
Problem Description
Five hundred year...
分类:
其他好文 时间:
2015-02-03 17:13:42
阅读次数:
175
Dragon Ball
Time Limit: 3000/1500 MS (Java/Others) Memory Limit: 65536/32768 K
(Java/Others)
...
分类:
其他好文 时间:
2015-02-02 10:55:48
阅读次数:
114
http://acm.neu.edu.cn/hustoj/problem.php?id=1492题意: 有n个盒子 现在有两种操作: 1 在序号为x的倍数的盒子里放y个球 2 查询序号x到y的盒子里的球的总数思路: 当时以为线段数 而且没...
分类:
其他好文 时间:
2015-02-01 14:39:02
阅读次数:
152
Dropping BallsA number of K balls are dropped one by one from the root of a fully binary tree structure FBT. Each time the ball ...
分类:
其他好文 时间:
2015-02-01 00:26:17
阅读次数:
175
Description Dragon loves lottery, he will try his luck every week. One day, the lottery company brings out a new form of lottery called accumulated...
分类:
其他好文 时间:
2015-01-31 14:33:10
阅读次数:
190
思路:把字符串转化为一个二进制,遇到B就是一个数二进制中的1,答案就是这个数。 1 #include 2 #include 3 #include 4 #define ll __int64 5 using namespace std; 6 7 int n; 8 char str[100]; 9...
分类:
其他好文 时间:
2015-01-29 12:24:07
阅读次数:
177
Cow Bowling
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
The cows don't use actual bowling balls when they go bowling. They ea...
分类:
其他好文 时间:
2015-01-28 16:07:49
阅读次数:
148
推荐题解:http://blog.csdn.net/niushuai666/article/details/69904211.有点按秩压缩的感觉2.printf的先从右向左计算 再输出,右边的数受左边的数影响时容易出错。 1 #include 2 #include 3 #include 4 #inc...
分类:
其他好文 时间:
2015-01-26 19:03:58
阅读次数:
150
题意:给定B (B
方法就是动态规划了。 虽然刚开始一直以为是个贪心或者构造
dp[i][j] 表示有i层楼, 剩余j个球时, 最坏情况要确定K 所需的次数
那么在这些楼层里
我们可以选择在k层(1
有两种情况,破跟不破
(1)不破, 则排除掉了k层,剩余i-k层 则转化为 dp[i - k][j]
(2)破了 则剩余i - 1层, 球剩k - 1个 转化为 dp...
分类:
其他好文 时间:
2015-01-24 21:25:43
阅读次数:
291