贪心
安庆闪耀
这个作者很懒,什么都没留下…
展开
-
hdu 2590 Building roads(环+贪心)
Building roadsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 121 Accepted Submission(s): 13Problem DescriptionThere is a cir原创 2016-05-28 14:37:39 · 444 阅读 · 0 评论 -
poj 1042 Gone Fishing(贪心)
DescriptionJohn 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 along a single, one-way road. John starts at lak原创 2016-04-10 20:41:12 · 504 阅读 · 0 评论 -
poj 2431Expedition(优先队列+贪心)
DescriptionA group of cows grabbed a truck and ventured on an expedition deep into the jungle. Being rather poor drivers, the cows unfortunately managed to run over a rock and puncture the truck's原创 2016-03-02 16:07:29 · 235 阅读 · 0 评论 -
bzoj 1029: [JSOI2007]建筑抢修(贪心+优先队列)
Description 小刚在玩JSOI提供的一个称之为“建筑抢修”的电脑游戏:经过了一场激烈的战斗,T部落消灭了所有z部落的入侵者。但是T部落的基地里已经有N个建筑设施受到了严重的损伤,如果不尽快修复的话,这些建筑设施将会完全毁坏。现在的情况是:T部落基地里只有一个修理工人,虽然他能瞬间到达任何一个建筑,但是修复每个建筑都需要一定的时间。同时,修理工人修理完一个建筑才能修理原创 2016-04-23 09:45:01 · 873 阅读 · 0 评论