sunscreen专题

poj3614 Sunscreen 【优先队列】

题意 有C个奶牛去晒太阳 (1 <=C <= 2500),每个奶牛各自能够忍受的阳光强度有一个最小值和一个最大值,太大就晒伤了,太小奶牛没感觉。 而刚开始的阳光的强度非常大,奶牛都承受不住,然后奶牛就得涂抹防晒霜,防晒霜的作用是让阳光照在身上的阳光强度固定为某个值。 那么为了不让奶牛烫伤,又不会没有效果。 给出了L种防晒霜。每种的数量和固定的阳光强度也给出来了 每个奶牛只能抹一瓶防晒霜,

ACM 贪心 Sunscreen

题目: 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 (1 ≤ minSPFi

POJ3614-Sunscreen

Sunscreen Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9975 Accepted: 3478 Description To avoid unsightly burns while tanning, each of the C (1 ≤ C ≤ 2500) cows must cover her

POJ 3614 Sunscreen(贪心 优先队列)有助于理解贪心过程

题目链接 Description 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 (1