
贪心算法
祖国的小果abc
我是菜鸟。。创造奇迹……
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Shopaholic
Shopaholic Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Description Lindsay is a shopaholic. Whenever there is a discount of the kind where yo原创 2014-12-10 14:37:48 · 458 阅读 · 0 评论 -
FatMouse' Trade
FatMouse' Trade Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description FatMouse prepared M pounds of cat food, ready to trade with the cat原创 2014-12-09 21:03:38 · 633 阅读 · 0 评论 -
Moo Volume
Moo Volume Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Description Farmer John has received a noise complaint from his neighbor, Farmer B原创 2014-12-13 15:08:05 · 725 阅读 · 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 · 481 阅读 · 0 评论 -
Wooden Sticks
Wooden Sticks Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description There is a pile of n wooden sticks. The length and weight of each s原创 2014-12-12 18:39:44 · 553 阅读 · 0 评论 -
Doing Homework again
Doing Homework again Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description Ignatius has just come back school from the 30th ACM/ICPC. N原创 2014-12-11 09:29:12 · 523 阅读 · 0 评论 -
今年暑假不AC
今年暑假不AC Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description “今年暑假不AC?” “是的。” “那你干什么呢?” “看世界杯呀,笨蛋!” “@#$%^&*%...” 确实如此,世界杯原创 2014-12-08 21:02:49 · 640 阅读 · 0 评论 -
寻找最大数
寻找最大数 时间限制:1000 ms | 内存限制:65535 KB 难度:2 描述 请在整数 n 中删除m个数字, 使得余下的数字按原次序组成的新数最大, 比如当n=92081346718538,m=10时,则新的最大数是9888 输入第一行输入一个正整数T,表示有T组测试数据 每组测试数据占一行,每行有两个数n,m(n可能是一个很原创 2015-04-08 11:36:50 · 466 阅读 · 0 评论