![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
Lngxling
这个作者很懒,什么都没留下…
展开
-
POJ - 3253 Fence Repair ——贪心——优先队列
Fence RepairTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 52578 Accepted: 17298DescriptionFarmer John wants to repair a small length of the fence ar原创 2017-09-13 11:19:52 · 256 阅读 · 0 评论 -
CodeForces - 732D Exams —— 二分、贪心
D. Examstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasiliy has an exam period which will continue for原创 2017-12-14 21:56:48 · 228 阅读 · 0 评论 -
51Nod - 116 最高的奖励 ——贪心——优先队列
1163 最高的奖励基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:3级算法题有N个任务,每个任务有一个最晚结束时间以及一个对应的奖励。在结束时间之前完成该任务,就可以获得对应的奖励。完成每一个任务所需的时间都是1个单位时间。有时候完成所有任务是不可能的,因为时间上可能会有冲突,这需要你来取舍。求能够获得的最高奖励。原创 2017-09-12 21:49:42 · 273 阅读 · 0 评论 -
HDU - 1896 Stones —— 优先队列——贪心
StonesTime Limit: 5000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 3109 Accepted Submission(s): 2025Problem DescriptionBecause of the wron原创 2017-09-12 21:00:38 · 190 阅读 · 0 评论 -
POJ - 3190 Stall Reservations——优先队列——贪心
Stall ReservationsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7728 Accepted: 2736 Special JudgeDescriptionOh those picky N (1 <= N <= 50,000)原创 2017-09-11 18:42:29 · 241 阅读 · 0 评论 -
CodeForces - 747D Winter Is Coming ——贪心
D. Winter Is Comingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe winter in Berland lasts n days. For原创 2017-09-12 18:02:16 · 397 阅读 · 0 评论 -
51Nod - 1420 数袋鼠好有趣——贪心
1420 数袋鼠好有趣题目来源: CodeForces基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题有n只袋鼠。每只袋鼠的大小用一个整数表示。一只小袋鼠能装进一只大袋鼠的条件是,大袋鼠的大小至少是小袋鼠的两倍。每只大袋鼠最多可以装一只袋鼠。小袋鼠被装进大袋鼠之后就不能再装其它的袋鼠了。小袋鼠被装进大原创 2017-09-10 20:01:34 · 311 阅读 · 0 评论 -
CodeForces - 747C Servers——贪心
C. Serverstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n servers in a laboratory, each of the原创 2017-09-11 15:25:17 · 387 阅读 · 0 评论 -
codeforce 698A Vacations——贪心——动态规划
A. Vacationstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has n days of vacations! So he decided to原创 2017-09-10 10:55:46 · 237 阅读 · 0 评论 -
CodeForces - 799B T-shirt buying —— 贪心 优先队列
B. T-shirt buyingtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA new pack of n t-shirts came to a shop.原创 2017-09-26 11:06:47 · 411 阅读 · 0 评论 -
CodeForces - 540B School Marks —— 贪心
B. School Markstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Vova studies programming in an elite原创 2017-09-23 20:57:20 · 731 阅读 · 0 评论 -
POJ - 3262 Protecting the Flowers —— 贪心
Protecting the FlowersTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 8008 Accepted: 3238DescriptionFarmer John went to cut some wood and left N (2 ≤原创 2017-09-14 21:11:35 · 217 阅读 · 0 评论 -
CodeForces - 462B Appleman and Card Game
B. Appleman and Card Gametime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAppleman has n cards. Each card ha原创 2018-02-05 20:30:05 · 213 阅读 · 0 评论