码迷,mamicode.com
首页 >  
搜索关键字:candy 分糖果    ( 334个结果
2016 省热身赛 Cylinder Candy
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
LeetCode Candy
一直线上站了N个孩子,每个孩子都有一个属于自己的数字,现在按照如下规则给孩子分发糖果:每个孩子至少有一个糖果;相邻的孩子中数字比较大的那个拿的糖果也比较多。求最少要发掉多少个糖果。...
分类:其他好文   时间:2016-04-29 15:27:50    阅读次数:134
BJFU 1549 ——Candy——————【想法题】
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
C.Candy
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
数据结构(主席树):HDU 5654 xiaoxin and his watermelon candy
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
hdu 5654 xiaoxin and his watermelon candy 树状数组维护区间唯一元组
题目链接 题意:序列长度为n(1<= n <= 200,000)的序列,有Q(<=200,000)次区间查询,问区间[l,r]中有多少个不同的连续递增的三元组。 思路:连续三元组->递推O(n)将第一次出现该三元组的下标记录到树状数组中,并且用一个Next[]来表示递推关系,即同一个三元组下一次出现 ...
分类:编程语言   时间:2016-04-01 01:08:39    阅读次数:235
HDU 5654 xiaoxin and his watermelon candy 离线树状数组
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(离线+树状数组)
【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
Poj 3083 Children of the Candy Corn
这题被放在dfs里,所以说不能盲目相信分类,正所谓自古迷宫必bfs,迷宫问题的深度一般dfs是不行的,其实这题没什么,关键是方向变换的定义,只是我以为不用做访问标记而错了好久,于是及其无聊地在那二分查找介于re与mle之间的内存大小(你可以去死了),这行为和我早上为了吃到外卖而坚持不去一条街,饿了好
分类:其他好文   时间:2016-03-13 06:21:41    阅读次数:203
hdu 1034 Candy Sharing Game
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
334条   上一页 1 ... 13 14 15 16 17 ... 34 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!