
小技巧
文章平均质量分 81
wust_cyl
在非洲,瞪羚每天早上醒来时,他知道自己必须跑的比最快的狮子还快,否则就会被吃掉.狮子每天早上醒来时,他知道自己必须追上跑得最慢的瞪羚,否则就会被饿死.不管你是狮子还是瞪羚,当太阳升起时,你最好开始奔跑
展开
-
POJ 3962 (三分的利用)
Dome of CircusTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 862 Accepted: 177 Special JudgeDescriptionA travelling circus faces a tough challenge in designing the dome for its performances...原创 2017-08-11 08:45:06 · 406 阅读 · 0 评论 -
Codeforces 191B(贪心)
问题描述:In the capital city of Berland, Bertown, demonstrations are against the recent election of the King of Berland. Berland opposition, led by Mr. Ovalny, believes that the elections were not fair en...原创 2017-10-09 18:50:34 · 357 阅读 · 0 评论 -
HDU 4550(贪心)
问题描述:小明最近宅在家里无聊,于是他发明了一种有趣的游戏,游戏道具是N张叠在一起的卡片,每张卡片上都有一个数字,数字的范围是0~9,游戏规则如下: 首先取最上方的卡片放到桌子上,然后每次取最上方的卡片,放到桌子上已有卡片序列的最右边或者最左边。当N张卡片全部都放到桌子上后,桌子上的N张卡片构成了一个数。这个数不能有前导0,也就是说最左边的卡片上的数字不能是0。游戏的目标是使这个数最小。 ...原创 2017-10-15 09:08:43 · 410 阅读 · 0 评论 -
CodeForces 873C(贪心)
问题描述:Ivan is playing a strange game.He has a matrix a with n rows and m columns. Each element of the matrix is equal to either 0 or 1. Rows and columns are 1-indexed. Ivan can replace any number of on...原创 2017-10-22 08:48:21 · 369 阅读 · 0 评论 -
HDU 1257(动态规划?贪心)
问题描述:某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能超过前一发的高度.某天,雷达捕捉到敌国的导弹来袭.由于该系统还在试用阶段,所以只有一套系统,因此有可能不能拦截所有的导弹. 怎么办呢?多搞几套系统呗!你说说倒蛮容易,成本呢?成本是个大问题啊.所以俺就到这里来求救了,请帮助计算一下最少需要多少套...转载 2017-11-02 18:06:32 · 350 阅读 · 0 评论 -
CodeForces 825C(贪心)
问题描述:Makes solves problems on Decoforces and lots of other different online judges. Each problem is denoted by its difficulty — a positive integer number. Difficulties are measured the same across all...原创 2017-11-09 16:33:40 · 454 阅读 · 0 评论 -
CodeForces 825D(贪心)
问题描述:You are given two strings s and t consisting of small Latin letters, string s can also contain '?' characters.Suitability of string s is calculated by following metric:Any two letters can be swap...原创 2017-11-10 23:58:48 · 342 阅读 · 0 评论 -
HDU 1789(贪心)
问题描述: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 the homework aft...原创 2017-12-15 12:29:50 · 453 阅读 · 0 评论 -
zoj-3806(几何+二分)
问题描述:A triangle is one the basic shapes in geometry. It's a polygon with three vertices and three sides which are line segments. A triangle with vertices A, B, C is denoted ΔABC. And its three sides, ...原创 2017-08-29 19:21:40 · 321 阅读 · 0 评论 -
Codeforces 165C(二分)
问题描述:A string is binary, if it consists only of characters "0" and "1".String v is a substring of string w if it has a non-zero length and can be read starting from some position in string w. For exam...原创 2017-12-21 10:07:29 · 299 阅读 · 0 评论 -
Codeforces 807C(二分)
问题描述:You are an experienced Codeforces user. Today you found out that during your activity on Codeforces you have made y submissions, out of which x have been successful. Thus, your current success ra...原创 2018-01-29 11:44:52 · 343 阅读 · 0 评论 -
Codeforces 801C(二分)
问题描述:You have n devices that you want to use simultaneously.The i-th device uses ai units of power per second. This usage is continuous. That is, in λ seconds, the device will use λ·ai units of power....原创 2018-01-30 19:12:47 · 356 阅读 · 0 评论 -
zoj-3721(贪心)
In Zhejiang University, there are N different courses labeled from 1 toN. Each course has its own time slot during the week. We can represent the time slot of a course by an left-closed right-open int...原创 2017-08-17 17:53:36 · 312 阅读 · 0 评论