![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
「已注销」
这个作者很懒,什么都没留下…
展开
-
HDU-1009 FatMouse' Trade
FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The warehouse has N rooms. The i-th room contains J[i] pounds of Ja...原创 2019-07-21 10:44:30 · 78 阅读 · 0 评论 -
FZU-1230 区间相交问题
给定 x 轴上 n 个闭区间。去掉尽可能少的闭区间,使剩下的闭区间都不相交。 ★算法设计: 对于给定的 n 个闭区间,计算去掉的最少闭区间数。 Input 对于每组输入数据,输入数据的第一行是正整数 n (1<=n<=40,000),表示闭区间数。接下来的 n 行中,每行有 2 个整数,分别表示闭区间的 2 个端点。 Output 输出计算出的去掉的最少闭区间数。 Sam...原创 2019-07-21 10:50:03 · 197 阅读 · 0 评论 -
HDU - 1789 Doing Homework again
Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands in the homework after th...原创 2019-07-21 15:12:11 · 95 阅读 · 0 评论