随笔分类 - 贪心
摘要:湫湫系列故事——消灭兔子Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 612Accepted Submission(s): 231Problem Description 湫湫减肥 越减越肥! 最近,减肥失败的湫湫为发泄心中郁闷,在玩一个消灭免子的游戏。 游戏规则很简单,用箭杀死免子即可。 箭是一种消耗品,已知有M种不同类型的箭可以选择,并且每种箭都会对兔子造成伤害,对应的伤害值分别为Di(1 #include
#include...
阅读全文
摘要:D. Event Datestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOn a history lesson the teacher asked Vasya to name the dates whennfamous events took place. He doesn't remembers the exact dates but he remembers a segment of days[li, ri](inclusi
阅读全文
摘要:D - Seller BobCrawling in process...Crawling failedTime Limit:2000MS Memory Limit:131072KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 18DDescriptionLast year Bob earned by selling memory sticks. During each of n days of his work one of the two following events took place: A custo
阅读全文
摘要:Prime Cryptarithm
The following cryptarithm is a multiplication problem that can be solved by substituting digits from a specified set of N digits into the positions marked with *. If the set of prime digits {2,3,5,7} is selected, the cryptarithm is called a PRIME CRYPTARITHM. * * * x * ...
阅读全文
摘要:Calf FlacIt is said that if you give an infinite number of cows an infinite number of heavy-duty laptops (with very large keys), that they will ultimately produce all the world's great palindromes. Your job will be to detect these bovine beauties.Ignore punctuation, whitespace, numbers, and case
阅读全文
摘要:Barn RepairIt was a dark and stormy night that ripped the roof and gates off the stalls that hold Farmer John's cows. Happily, many of the cows were on vacation, so the barn was not completely full. The cows spend the night in stalls that are arranged adjacent to each other in a long line. Some
阅读全文