![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
---贪心算法
wikioi_bai
时间并不会因为你的迷茫和迟疑而停留,就在你看这篇文章的同时,不知道有多少人在冥思苦想,在为算法废寝忘食,不知道有多少人在狂热地拍着代码,不知道又有多少提交一遍又一遍地刷新着OJ的status页面……
没有谁生来就是神牛,而千里之行,始于足下!
展开
-
HDU 2021
非常简单的一道贪心算法的题目,只要从最大面值的钞票开始不断的运用除法和原创 2014-11-08 12:14:12 · 510 阅读 · 0 评论 -
POJ_3627 Bookshelf
排序+贪心,,,原创 2014-10-11 12:43:25 · 814 阅读 · 0 评论 -
CODE[VS]_1098 均分纸牌问题
思路:贪心算法。原创 2014-10-04 19:24:13 · 905 阅读 · 0 评论 -
HDUOJ 2037 今年暑假不AC
思路:贪心算法。 和上一道 线段覆盖问题简直异曲同工之妙,只不过在原创 2014-10-04 23:13:19 · 612 阅读 · 0 评论 -
贪心算法最简单的硬币找钱问题
题目描述: 有1,5,10,50,100,500的硬币各C1,C5,C10,C50,C100,C500枚,现在要用这些硬币来支付A元,最少需要多少枚硬币。 解题思路: 贪心算法,竟可能多的使用面值最大的硬币的这一贪心的策略来切了。 # include # include using namespace std; const int V[6] = {1,5,10,50,1原创 2014-12-08 13:53:06 · 7068 阅读 · 0 评论 -
POJ 3069 Saruman's Army
Saruman's Army Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 4364 Accepted: 2249 Description Saruman the White must lead his army along a straight path原创 2014-12-10 13:29:05 · 545 阅读 · 0 评论 -
Codefroecs 289 div2 B. Painting Pebbles(贪心)
B. Painting Pebbles time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output There are n piles of pebbles on the tabl原创 2015-02-03 13:29:07 · 504 阅读 · 0 评论 -
选机房(贪心模拟)
选机房 Time Limit: 1000ms Memory Limit: 65535KB 64-bit integer IO format: %lld Java class name: Main Prev Submit Status Statistics Discuss Next Type: None原创 2015-03-08 22:28:08 · 738 阅读 · 0 评论 -
POJ 2456 Aggressive cows(贪心+二分)
Aggressive cows Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6948 Accepted: 3462 Description Farmer John has built a new long barn, with N (2 His原创 2015-03-10 22:53:05 · 514 阅读 · 0 评论