
贪心
文章平均质量分 84
Low丶Coder
这个作者很懒,什么都没留下…
展开
-
hihoCoder1485
#1485 : hiho字符串时间限制:10000ms单点时限:1000ms内存限制:256MB描述如果一个字符串恰好包含2个'h'、1个'i'和1个'o',我们就称这个字符串是hiho字符串。 例如"oihateher"、"hugeinputhugeoutput"都是hiho字符串。现在给定一个只包含小写字母的字符串S,小Hi想知道S的所有子串中,最短的hiho字符...原创 2017-09-06 15:29:01 · 308 阅读 · 0 评论 -
Codeforces Round #158 (Div. 2)C. Balls and Boxes
C. Balls and Boxestime limit per test:1 second memory limit per test:256 megabytesLittle Vasya had n boxes with balls in the room. The boxes stood in a row and were numbered with numbers from 1 to...原创 2018-07-23 00:14:49 · 228 阅读 · 0 评论 -
Codeforces Round #160 (Div. 1) A. Maxim and Discounts
A. Maxim and Discounts Maxim always goes to the supermarket on Sundays. Today the supermarket has a special offer of discount systems.There are m types of discounts. We assume that the discounts...原创 2018-07-24 09:58:14 · 246 阅读 · 0 评论 -
Codeforces1003D Coins and Queries
D. Coins and Queriestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp has nn coins, the value of the ii-th coin is aiai. It is guaranteed t...原创 2018-07-09 14:35:29 · 293 阅读 · 0 评论 -
HDU 1257 最少拦截系统(贪心 || dp)
最少拦截系统Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 51225 Accepted Submission(s): 20050Problem Description某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导弹拦...原创 2018-03-15 15:52:24 · 157 阅读 · 0 评论 -
POJ 3069 Saruman's Army
Saruman's ArmyTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 12362 Accepted: 6226DescriptionSaruman the White must lead his army along a straight p原创 2018-01-31 16:58:11 · 202 阅读 · 0 评论 -
POJ 3617 Best Cow Line
Best Cow LineTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 28525 Accepted: 7640DescriptionFJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annu原创 2018-01-31 15:42:35 · 140 阅读 · 0 评论 -
POJ3253 Fence Repair
Fence RepairTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 52245 Accepted: 17181DescriptionFarmer John wants to repair a small length of the fence arou原创 2017-09-01 10:16:24 · 245 阅读 · 0 评论 -
POJ3069 Saruman's Army
Saruman's ArmyTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 11250 Accepted: 5689DescriptionSaruman the White must lead his army along a straight pat原创 2017-09-01 09:49:44 · 182 阅读 · 0 评论 -
PAT1033 To Fill or Not to Fill(贪心)
1033 To Fill or Not to Fill(25 分)With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas stations on the ...原创 2018-09-10 18:51:59 · 150 阅读 · 0 评论