Cylinder Candy Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Cylinder Candy Description Edward the confectioner is making a new b ...
分类:
其他好文 时间:
2016-05-03 00:27:07
阅读次数:
143
一直线上站了N个孩子,每个孩子都有一个属于自己的数字,现在按照如下规则给孩子分发糖果:每个孩子至少有一个糖果;相邻的孩子中数字比较大的那个拿的糖果也比较多。求最少要发掉多少个糖果。...
分类:
其他好文 时间:
2016-04-29 15:27:50
阅读次数:
134
Candy 时间限制(C/C++):1000MS/3000MS 运行内存限制:65536KByte总提交:40 测试通过:20 描述 There are N children standing in a line. Each child is assigned a rating value. You ...
分类:
其他好文 时间:
2016-04-26 18:54:48
阅读次数:
142
There are NN children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following r ...
分类:
其他好文 时间:
2016-04-24 18:30:10
阅读次数:
255
Problem Description During his six grade summer vacation, xiaoxin got lots of watermelon candies from his leader when he did his internship at Tencent ...
分类:
其他好文 时间:
2016-04-11 10:20:01
阅读次数:
268
题目链接 题意:序列长度为n(1<= n <= 200,000)的序列,有Q(<=200,000)次区间查询,问区间[l,r]中有多少个不同的连续递增的三元组。 思路:连续三元组->递推O(n)将第一次出现该三元组的下标记录到树状数组中,并且用一个Next[]来表示递推关系,即同一个三元组下一次出现 ...
分类:
编程语言 时间:
2016-04-01 01:08:39
阅读次数:
235
xiaoxin and his watermelon candy Problem Description During his six grade summer vacation, xiaoxin got lots of watermelon candies from his leader when ...
分类:
编程语言 时间:
2016-03-30 14:58:44
阅读次数:
273
【HDOJ 5654】 xiaoxin and his watermelon candy(离线+树状数组)
xiaoxin and his watermelon candy
Time Limit: 4000/4000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 233...
分类:
编程语言 时间:
2016-03-29 10:32:05
阅读次数:
198
这题被放在dfs里,所以说不能盲目相信分类,正所谓自古迷宫必bfs,迷宫问题的深度一般dfs是不行的,其实这题没什么,关键是方向变换的定义,只是我以为不用做访问标记而错了好久,于是及其无聊地在那二分查找介于re与mle之间的内存大小(你可以去死了),这行为和我早上为了吃到外卖而坚持不去一条街,饿了好
分类:
其他好文 时间:
2016-03-13 06:21:41
阅读次数:
203
Candy Sharing Game Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4942 Accepted Submission(s): 3
分类:
其他好文 时间:
2016-03-09 20:43:02
阅读次数:
209