![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心算法
_好吗_好的
Stay Hungry,Stay Foolish.
展开
-
HDU-4726-K - Kia's Calculation(贪心)
Doctor Ghee is teaching Kia how to calculate the sum of two integers. But Kia is so careless and alway forget to carry a number when the sum of two digits exceeds 9. For example, when she calculates 45原创 2017-08-03 21:34:28 · 374 阅读 · 1 评论 -
HDU-1789-Doing Homework again(贪心)
Problem Description 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 t原创 2017-08-04 11:59:58 · 178 阅读 · 0 评论 -
POJ-1089-Intervals(贪心)
DescriptionThere is given the series of n closed intervals [ai; bi], where i=1,2,…,n. The sum of those intervals may be represented as a sum of closed pairwise non−intersecting intervals. The task is t原创 2017-08-04 20:35:41 · 348 阅读 · 0 评论 -
POJ-3258-River Hopscotch(二分+贪心)
DescriptionEvery year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The excitement takes place on a long, straight river原创 2017-08-05 22:10:45 · 375 阅读 · 0 评论 -
IQ(贪心)
题目描述 根据世界某权威学会的一项调查,学信息学的学生IQ非常高。举个最好的例子,如果我们把学信息学的一些学生调去学数学,那么两个竞赛的学生平均IQ都会提升!! 现在给出一群数学竞赛全体学生的IQ和信息学竞赛全体学生的IQ,问最多能把几个学信息学的学生调去学数学,而两个竞赛的学生平均IQ都有提升呢? 每次只调一个学生,而且每次调配,两个竞赛的学生平均IQ都要提升。 输入 第1行一个正整数N原创 2017-06-07 01:08:03 · 1327 阅读 · 0 评论