码迷,mamicode.com
首页 >  
搜索关键字:crb and candies    ( 410个结果
poj3159 Candies(差分约束)
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraudCandiesTime Limit: 1500MSMemory Limit: 131072KDescriptionDuring the kindergarten days, flymouse was th...
分类:其他好文   时间:2015-02-28 00:07:15    阅读次数:187
[leet code 135]candy
1 题目There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following r...
分类:其他好文   时间:2015-02-28 00:06:36    阅读次数:211
LeetCode 笔记25 Candy (艰难的调试)
There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requi...
分类:其他好文   时间:2015-02-25 23:39:26    阅读次数:202
[LeetCode]Candy
There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following requirements: Each child must have at least on...
分类:其他好文   时间:2015-02-12 10:48:33    阅读次数:111
Who Gets the Most Candies?(线段树 + 反素数 )
Who Gets the Most Candies?Time Limit:5000MSMemory Limit:131072KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionNchildren are sitting in a circle ...
分类:其他好文   时间:2015-02-06 21:39:57    阅读次数:223
candy
There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following requirements: Each child must have at least on...
分类:其他好文   时间:2015-02-04 14:36:41    阅读次数:204
hdu4322 最大费用最大流
http://acm.hdu.edu.cn/showproblem.php?pid=4322 Problem Description There are N candies and M kids, the teacher will give this N candies to the M kids. The i-th kids for the j-th candy has a pr...
分类:其他好文   时间:2015-02-04 13:04:31    阅读次数:218
poj 3159 Candies dijkstra + queue
题目链接: http://poj.org/searchproblem题目大意: 飞天鼠是班长,一天班主任买了一大包糖果,要飞天鼠分发给大家,班里面有n个人,但是学生A认为学生B比自己多的糖果数目不应该大于c,如果不满足自己的条件,学生A就会向老师告状,在这个班级里面泰迪熊的编号是1,班长的编号是.....
分类:其他好文   时间:2015-01-22 14:44:40    阅读次数:165
poj 3159 Candies dijkstra + queue
题目链接: http://poj.org/searchproblem题目大意: 飞天鼠是班长,一天班主任买了一大包糖果,要飞天鼠分发给大家,班里面有n个人,但是学生A认为学生B比自己多的糖果数目不应该大于c,如果不满足自己的条件,学生A就会向老师告状,在这个班级里面泰迪熊的编号是1,班长的编号是.....
分类:其他好文   时间:2015-01-22 12:36:03    阅读次数:196
poj 3159 candies (差分约束 spfa+stack)
http://poj.org/problem?id=3159题意:一个班有n个人 每人分到若干糖果 且u的糖果数不能比v少w个 求第1个人与第n个人最大数量差照着模板spfa+queue果断tle了之后照着题解说的把queue改成stack就过了 但是还不明白为什么会快而且如果用数组直接模拟会比st...
分类:其他好文   时间:2015-01-20 17:29:54    阅读次数:153
410条   上一页 1 ... 31 32 33 34 35 ... 41 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!