
简单贪心
rainbowsea_1
难得有了目标,怎么可以还是烂人一条!
展开
-
Sunscreen POJ - 3614(贪心+优先队列)
Sunscreen POJ - 3614 To avoid unsightly burns while tanning, each of the C (1 ≤ C ≤ 2500) cows must cover her hide with sunscreen when they’re at the beach. Cow i has a minimum and maximum SPF rating ...原创 2020-03-28 10:29:21 · 222 阅读 · 0 评论 -
Protecting the Flowers POJ - 3262
Protecting the Flowers POJ - 3262 Farmer John went to cut some wood and left N (2 ≤ N ≤ 100,000) cows eating the grass, as usual. When he returned, he found to his horror that the cluster of cows was ...原创 2020-03-25 21:29:22 · 201 阅读 · 0 评论 -
Yogurt factory POJ - 2393
Yogurt factory POJ - 2393 The cows have purchased a yogurt factory that makes world-famous Yucky Yogurt. Over the next N (1 <= N <= 10,000) weeks, the price of milk and labor will fluctuate week...原创 2020-03-24 20:08:24 · 125 阅读 · 0 评论 -
Stall Reservations POJ - 3190
Stall Reservations POJ - 3190 Oh those picky N (1 <= N <= 50,000) cows! They are so picky that each one will only be milked over some precise time interval A…B (1 <= A <= B <= 1,000,000...原创 2020-03-24 19:49:35 · 129 阅读 · 0 评论 -
Allowance POJ - 3040
Allowance POJ - 3040 As a reward for record milk production, Farmer John has decided to start paying Bessie the cow a small weekly allowance. FJ has a set of coins in N (1 <= N <= 20) different ...原创 2020-03-24 19:28:03 · 227 阅读 · 1 评论 -
Saruman's Army POJ - 3069
Saruman’s Army POJ - 3069 Saruman the White must lead his army along a straight path from Isengard to Helm’s Deep. To keep track of his forces, Saruman distributes seeing stones, known as palantirs, a...原创 2020-03-24 19:07:27 · 158 阅读 · 0 评论 -
Packets POJ - 1017(贪心)
Packets POJ - 1017 A factory produces products packed in square packets of the same height h and of the sizes 11, 22, 33, 44, 55, 66. These products are always delivered to customers in the square par...原创 2020-03-24 18:52:17 · 158 阅读 · 0 评论 -
Radar Installation POJ - 1328(贪心)
Radar Installation POJ - 1328 Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar ...原创 2020-03-10 23:33:09 · 321 阅读 · 0 评论 -
Best Cow Line POJ - 3617(贪心)
Best Cow Line POJ - 3617 FJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annual"Farmer of the Year" competition. In this contest every farmer arranges his cows in a line and herds them past the ...原创 2020-03-10 23:13:30 · 184 阅读 · 0 评论 -
Cleaning Shifts POJ - 2376(贪心)
Cleaning Shifts POJ - 2376 Farmer John is assigning some of his N (1 <= N <= 25,000) cows to do some cleaning chores around the barn. He always wants to have one cow working on cleaning things u...原创 2020-03-10 15:53:00 · 254 阅读 · 0 评论