
贪心法
文章平均质量分 83
J_Sure
唯苦修深思方能顿悟
展开
-
AOJ-AHU-OJ-2 Homework
Home WorkTime Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescription临近开学了,大家都忙着收拾行李准备返校,但I_Love_C却不为此担心! 因为他的心思全在暑假作业上:目前为止还未开动(-_-!!还以为他有多冷静呢)。暑假作业是很多张试卷,我们这些从试卷里爬出来的人都知道,原创 2014-03-01 10:11:35 · 3469 阅读 · 0 评论 -
【贪心】HDU-1789 Doing Homework again
Doing Homework againTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionIgnatius has just come back school from the 30th ACM/ICPC. Now he原创 2014-11-22 22:48:58 · 744 阅读 · 0 评论 -
【贪心】POJ-2586 Y2K Accounting Bug
Y2K Accounting BugTime Limit: 1000MS Memory Limit: 65536K DescriptionAccounting for Computer Machinists (ACM) has sufferred from the Y2K bug and lost some vital原创 2014-11-12 22:20:12 · 734 阅读 · 0 评论 -
ZOJ-1029(POJ-1083、HDU-1050) Moving Tables
Moving TablesTime Limit: 2 Seconds Memory Limit: 65536 KBThe famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure.The原创 2014-06-04 17:27:12 · 1014 阅读 · 0 评论 -
HDU-1008 FatMouse' Trade
FatMouse' TradeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionFatMouse prepared M pounds of cat food, ready to trade with the cats原创 2014-08-27 16:33:03 · 823 阅读 · 0 评论 -
Codeforces-461A Appleman and Toastman
A. Appleman and Toastmantime limit per test2 secondsmemory limit per test256 megabytesAppleman and Toastman play a game. Initially Appleman gives one group of n numbers to the原创 2014-08-27 12:39:24 · 1073 阅读 · 0 评论 -
POJ-3363 Annoying painting tool
Annoying painting toolTime Limit: 1000MS Memory Limit: 65536KDescriptionMaybe you wonder what an annoying painting tool is? First of all, the painting tool we speak of supp原创 2014-08-26 19:41:57 · 944 阅读 · 0 评论 -
Wikioi-1069 关押罪犯
1069 关押罪犯题目描述DescriptionS 城现有两座监狱,一共关押着N 名罪犯,编号分别为1~N。他们之间的关系自然也极不和谐。很多罪犯之间甚至积怨已久,如果客观条件具备则随时可能爆发冲突。我们用“怨气值”(一个正整数值)来表示某两名罪犯之间的仇恨程度,怨气值越大,则这两名罪犯之间的积怨越多。如果两名怨气值为c 的罪犯被关押在同一监狱,他们俩之间会发生摩擦原创 2014-08-09 11:12:28 · 1362 阅读 · 0 评论 -
AOJ-AHU-OJ-517 序列(贪心)
序列Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBJudge By CaseDescription有一个整数序列,它的每个数各不相同,我们不知道它的长度是多少(即整数个数),但我们知道在某些区间中至少有多少个整数,用区间(Li,Ri,Ci)来描述,表示这个整数序列中至少有C原创 2014-06-03 12:18:02 · 1019 阅读 · 0 评论 -
ZOJ-1360(POJ-1328) Radar Installation
Radar InstallationTime Limit: 2 Seconds Memory Limit: 65536 KBAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a p原创 2014-06-05 17:17:54 · 1181 阅读 · 2 评论 -
HDU-OJ-1231 最大连续子序列
最大连续子序列Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description给定K个整数的序列{ N1, N2, ..., NK },其任意连续子序列可表示为{ Ni, Ni+1, ..., Nj },其中 1 例如给定序原创 2014-04-19 11:33:17 · 1489 阅读 · 0 评论 -
HDU-2037 B 今年暑假不AC
今年暑假不ACTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description“今年暑假不AC?”“是的。”“那你干什么呢?”“看世界杯呀,笨蛋!”“@#$%^&*%...”确实如此,世界杯来了,球迷的节日也来了原创 2014-03-17 10:55:43 · 1226 阅读 · 0 评论