poj3614Sunscreen】的更多相关文章

参考:❀ #include<iostream> #include<cstdio> #include<queue> #include<algorithm> using namespace std; +; struct rec { int a,b; bool operator < (const rec& x) const { return a<x.a; } }; rec cow[MAXN],sunscreen[MAXN]; ; int mai…
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 ≤ minSPFi ≤ 1,000; minSPFi ≤ maxSPFi ≤ 1,000) that will…