![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM__贪心
文章平均质量分 80
wust_zwl
学不死,就往死里学。
展开
-
codeforces 777B Game of Credit Cards (贪心)
After the fourth season Sherlock and Moriary have realized the whole foolishness of the battle between them and decided to continue their competitions in peaceful game of Credit Cards.原创 2017-08-03 10:23:06 · 323 阅读 · 0 评论 -
POJ 1827 A Bunch Of Monsters(贪心)
Background Jim is a brave explorer. One day, he set out for his next destination, a mysterious hill. When he arrived at the foot of the hill, he was told that there were a bunch of monsters living in that hill, and was dissuaded from continuing his trip b原创 2017-08-03 20:35:07 · 288 阅读 · 0 评论 -
wust oj 1318 区间的连通性(贪心)
题目包含多组数据,你有一个集合,该集合的元素为形如(x,y)的区间,两个区间1:(a,b)、2:(c,d),如果c<a<d 或者 c<b<d说明1号区间能到达2号区间,当然如果2号区间能到3号区间的话,那么1号区间也能到达3号区间。(该性质具有传递性) 现在给你n个操作,操作分为两种: 1.“1 x y”(x<y),将区间加入集合中。(区间按照加入的顺序编号) 2.“2 a b”(a!=b),问你第a个区间能否到达第b个区间。原创 2017-08-04 14:46:55 · 520 阅读 · 1 评论 -
ZOJ 3699 (贪心模拟)【加油站类模板】
The Dakar Rally is an annual Dakar Series rally raid type of off-road race, organized by the Amaury Sport Organization. The off-road endurance race consists of a series of routes. In different routes, the competitors cross dunes, mud, camel grass, rocks, e原创 2017-07-27 19:07:54 · 351 阅读 · 0 评论 -
WUST 1846 营养膳食(贪心)【简单贪心类模板】
阿月正在女朋友宁宁的监督下完成自己的增肥计划。 为了增肥,阿月希望吃到更多的脂肪。然而也不能只吃高脂肪食品,那样的话就会导致缺少其他营养。阿月通过研究发现:真正的营养膳食规定某类食品不宜一次性吃超过若干份。比如就一顿饭来说,肉类不宜吃超过1份,鱼类不宜吃超过1份,蛋类不宜吃超过1份,蔬菜类不宜吃超过2份。阿月想要在营养膳食的情况下吃到更多的脂肪,当然阿月的食量也是有限的。原创 2017-07-25 20:51:06 · 1302 阅读 · 0 评论 -
HDU 1257 最少拦截系统(贪心模板)
某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能超过前一发的高度.某天,雷达捕捉到敌国的导弹来袭.由于该系统还在试用阶段,所以只有一套系统,因此有可能不能拦截所有的导弹. 怎么办呢?多搞几套系统呗!你说说倒蛮容易,成本呢?成本是个大问题啊.所以俺就到这里来求救了,请帮助计算一下最少需要多少套拦截系统.原创 2017-07-28 11:44:26 · 275 阅读 · 0 评论 -
codeforces 337C Quiz(快速幂+推公式+贪心)
Manao is taking part in a quiz. The quiz consists of n consecutive questions. A correct answer gives one point to the player. The game also has a counter of consecutive correct answers. When the player answers a question correctly, the number on this count原创 2017-10-30 23:42:33 · 365 阅读 · 0 评论