码迷,mamicode.com
首页 >  
搜索关键字:delicious apples    ( 175个结果
2015多校第二场 1004( Delicious Apples )
题意:有一条圆形的路,你的仓库在0点,这条路长l,然后有n个苹果树,每个数的坐标是xi(顺时针),每棵树上有ai个苹果。你有个篮子,能装k个苹果,问你用这个篮子将所有苹果装回仓库所走的最短路为多少? 1≤n,k≤105,ai≥1,a1+a2+...+an≤105 1≤L≤109 0≤x[i]≤L 请特别注意上面的苹果个数的条件。因为我的学长 就是从这个条件成功做出了这道题,orz! ...
分类:移动开发   时间:2015-07-23 21:52:01    阅读次数:137
(简单) POJ 3321 Apple Tree,树链剖分+树状数组。
DescriptionThere is an apple tree outside of kaka's house. Every autumn, a lot of apples will grow in the tree. Kaka likes apple very much, so he has ...
分类:移动开发   时间:2015-07-17 18:31:44    阅读次数:144
全民Scheme(3):为什么就不讲道理呢,女人?
人生最美好的东西,就是他同别人的友谊。——林肯 (define set?   (lambda (l)     (cond     ((null? l) #t)     ((member? (car l) (cdr l)) #f)     (else (set? (cdr l)))))) (set? '(apples peaches pear plums)) (set? '(ap...
分类:其他好文   时间:2015-07-07 00:55:57    阅读次数:130
POJ3321:Apple Tree(树状数组)
Description There is an apple tree outside of kaka's house. Every autumn, a lot of apples will grow in the tree. Kaka likes apple very much, so he has been carefully nurturing the big apple tree. ...
分类:移动开发   时间:2015-06-25 12:24:40    阅读次数:161
poj3321 Apple Tree
Description There is an apple tree outside of kaka's house. Every autumn, a lot of apples will grow in the tree. Kaka likes apple very much, so he has been carefully nurturing the big apple tree. ...
分类:移动开发   时间:2015-06-06 15:02:30    阅读次数:157
swift基础控件的创建
/* let apples = 3 let orange = 5 let L = 1.1 let appleSummary = "I have \(apples) apples" let fruitSummary = "I have \(apples + orange) pieces of fruit."...
分类:编程语言   时间:2015-06-06 09:12:06    阅读次数:409
(双端队列优化的SPFA) bzoj 2100
DescriptionBessie has two crisp red apples to deliver to two of her friends in the herd. Of course, she travels the C (1 6-> 7 -> 4* -> 3 -> 2 -> 1* ....
分类:其他好文   时间:2015-05-22 11:24:05    阅读次数:173
tc srm659 div2 1000
题目: Garth likes apples and oranges. Recently he bought N fruits, where each fruit was either an apple or an orange. Then he ate all N fruits in some order. You are given an int K. Garth obse...
分类:其他好文   时间:2015-05-20 14:54:13    阅读次数:182
A-Apple Catching(POJ 2385)
Apple CatchingTime Limit:1000MSMemory Limit:65536KTotal Submissions:8759Accepted:4264DescriptionIt is a little known fact that cows love apples. Farme...
分类:移动开发   时间:2015-05-04 20:08:35    阅读次数:152
ACM学习历程——POJ3321 Apple Tree(搜索,线段树)
DescriptionThere is an apple tree outside of kaka's house. Every autumn, a lot of apples will grow in the tree. Kaka likes apple very much, so he has ...
分类:移动开发   时间:2015-04-30 21:36:07    阅读次数:243
175条   上一页 1 ... 12 13 14 15 16 ... 18 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!