
贪心
文章平均质量分 83
shao824714565
这个作者很懒,什么都没留下…
展开
-
HUD 2037 今年暑假不AC
Problem Description“今年暑假不AC?”“是的。”“那你干什么呢?”“看世界杯呀,笨蛋!”“@#$%^&*%...”确实如此,世界杯来了,球迷的节日也来了,估计很多ACMer也会抛开电脑,奔向电视了。作为球迷,一定想看尽量多的完整的比赛,当然,作为新时代的好青年,你一定还会看一些其它的节目,比如新闻联播(永远不要忘记关心国家大事)、非常6+7、原创 2016-07-11 10:34:25 · 28391 阅读 · 0 评论 -
Tyvj 1066 合并果子(贪心)
时间: 1000ms / 空间: 131072KiB / Java类名: Main背景NOIP2004 提高组 第二道描述 在一个果园里,多多已经将所有的果子打了下来,而且按果子的不同种类分成了不同的堆。多多决定把所有的果子合成一堆。 每一次合并,多多可以把两堆果子合并到一起,消耗的体力等于两堆果子的重量之和。可以看出,所有的果子经原创 2016-08-11 17:43:05 · 33659 阅读 · 0 评论 -
POJ 1716 Integer Intervals
Integer IntervalsTime Limit: 1000MS Memory Limit: 10000KB 64bit IO Format: %lld & %lluSubmit StatusDescriptionAn integer interval [a,b], a Write a program t原创 2016-07-21 14:29:51 · 24244 阅读 · 0 评论 -
UVA 507 Jill Rides Again (选择最大和区间)
Jill Rides AgainTime Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVA 507 uDebugDescriptionJill likes to ride her bicycle, but since原创 2016-07-25 11:12:07 · 24651 阅读 · 0 评论 -
NYOJ 30 Gone Fishing
Gone Fishing时间限制:3000 ms | 内存限制:65535 KB难度:5描述John is going on a fishing trip. He has h hours available (1 <= h <= 16), and there are n lakes in the area (2 <= n <= 25) all reachable原创 2016-07-22 20:55:20 · 24261 阅读 · 0 评论 -
POJ 1323 Game Prediction(贪心)
Game PredictionTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 1323DescriptionSuppose there are M people, including you,原创 2016-07-11 20:50:40 · 31988 阅读 · 0 评论 -
POJ 1328 Radar Installation(贪心+区间选点问题)
Radar InstallationTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 1328DescriptionAssume the coasting is an infinite strai原创 2016-07-11 20:36:17 · 30660 阅读 · 0 评论 -
POJ 1862 Stripies(G++与C++的抉择)
StripiesTime Limit: 1000MS Memory Limit: 30000KB 64bit IO Format: %lld & %lluSubmit StatusDescriptionOur chemical biologists have invented a new very useful f原创 2016-07-22 11:40:40 · 24440 阅读 · 0 评论 -
HDU 1051 Wooden Sticks (贪心入门)
Wooden SticksTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThere is a pile of n wooden sticks. The length and weight of each原创 2016-07-11 10:50:28 · 29894 阅读 · 1 评论 -
区间相交问题(贪心入门)
区间相交问题Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription给定 x 轴上 n 个闭区间。去掉尽可能少的闭区间,使剩下的闭区间都不相交。★算法设计: 对于给定的 n 个闭区间,计算去掉的最少闭区间数。原创 2016-07-11 10:40:30 · 32523 阅读 · 0 评论 -
NYOJ 6 喷水装置(一)
题目描述现有一块草坪,长为20米,宽为2米,要在横中心线上放置半径为Ri的喷水装置,每个喷水装置的效果都会让以它为中心的半径为实数Ri(0<Ri<15)的圆被湿润,这有充足的喷水装置i(1<i<600)个,并且一定能把草坪全部湿润,你要做的是:选择尽量少的喷水装置,把整个草坪的全部湿润。输入第一行m表示有m组测试数据每一组测试数据的第一行有一个整数数n,n表原创 2016-09-06 21:59:47 · 26491 阅读 · 0 评论