贪心算法
祖国的小果abc
我是菜鸟。。创造奇迹……
展开
-
Shopaholic
ShopaholicTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionLindsay is a shopaholic. Whenever there is a discount of the kind where yo原创 2014-12-10 14:37:48 · 407 阅读 · 0 评论 -
FatMouse' Trade
FatMouse' TradeTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionFatMouse prepared M pounds of cat food, ready to trade with the cat原创 2014-12-09 21:03:38 · 594 阅读 · 0 评论 -
Moo Volume
Moo VolumeTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionFarmer John has received a noise complaint from his neighbor, Farmer B原创 2014-12-13 15:08:05 · 675 阅读 · 0 评论 -
背包问题
背包问题时间限制:3000 ms | 内存限制:65535 KB难度:3描述现在有很多物品(它们是可以分割的),我们知道它们每个物品的单位重量的价值v和重量w(1<=v,w<=10);如果给你一个背包它能容纳的重量为m(10<=m<=20),你所要做的就是把物品装到背包里,使背包里的物品的价值总和最大。输入第一行输入一个正整数n(1随后有n测试数原创 2014-12-13 21:18:33 · 443 阅读 · 0 评论 -
Wooden Sticks
Wooden SticksTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThere is a pile of n wooden sticks. The length and weight of each s原创 2014-12-12 18:39:44 · 510 阅读 · 0 评论 -
Doing Homework again
Doing Homework againTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionIgnatius has just come back school from the 30th ACM/ICPC. N原创 2014-12-11 09:29:12 · 476 阅读 · 0 评论 -
今年暑假不AC
今年暑假不ACTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription“今年暑假不AC?” “是的。” “那你干什么呢?” “看世界杯呀,笨蛋!” “@#$%^&*%...” 确实如此,世界杯原创 2014-12-08 21:02:49 · 599 阅读 · 0 评论 -
寻找最大数
寻找最大数时间限制:1000 ms | 内存限制:65535 KB难度:2描述请在整数 n 中删除m个数字, 使得余下的数字按原次序组成的新数最大,比如当n=92081346718538,m=10时,则新的最大数是9888 输入第一行输入一个正整数T,表示有T组测试数据每组测试数据占一行,每行有两个数n,m(n可能是一个很原创 2015-04-08 11:36:50 · 435 阅读 · 0 评论