
贪心
文章平均质量分 51
Unin88
这个作者很懒,什么都没留下…
展开
-
POJ 3045 Cow Acrobats
http://poj.org/problem?id=3045原创 2014-09-18 22:24:07 · 528 阅读 · 0 评论 -
508C — Anya and Ghosts
求每一个怪到达的时候都有r个蜡烛在燃烧的最少蜡烛数,这是一个贪心题,只要保证点燃的时间尽量晚就可以。#include #include #include #include #include #include #include using namespace std;int m,t,r,ans;int a[310],cnt[1010];//cnt记录从午夜之后每个时间点有多原创 2015-02-03 18:34:40 · 354 阅读 · 0 评论