摘要:
DescriptionSean准备投资一些项目。有n个投资项目,投资第i个项目需要花费Ci元。Sean发现如果投资了某些编号连续的项目就能赚得一定的钱。现在给出m组连续的项目和每组能赚得的钱,请问采取最优的投资策略的最大获利是多少?样例最佳策略是全部项目都投资,然后第1,2组都满足了,获利为2+2-... 阅读全文
摘要:
D. Chocolatetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarpus likes giving presents to P... 阅读全文
摘要:
C. Hacking Cyphertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarpus participates in a com... 阅读全文
摘要:
字串数Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3187Accepted Submission(s): 757Problem Descript... 阅读全文
摘要:
Fight the Monster time limit per test 1 second memory limit per test 256 megabytes ... 阅读全文
摘要:
简单计算器Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12832Accepted Submission(s): 4222Problem Desc... 阅读全文
摘要:
ArbitrageTime Limit:1000MSMemory Limit:65536KTotal Submissions:16175Accepted:6803DescriptionArbitrage is the use of discrepancies in currency exchange... 阅读全文
摘要:
Cow ContestTime Limit:1000MSMemory Limit:65536KTotal Submissions:7156Accepted:3957DescriptionN(1 ≤N≤ 100) cows, con... 阅读全文
摘要:
MPI MaelstromTime Limit:1000MSMemory Limit:10000KTotal Submissions:5547Accepted:3458DescriptionBIT has recently take... 阅读全文
摘要:
WormholesTime Limit:2000MSMemory Limit:65536KTotal Submissions:31992Accepted:11614DescriptionWhile exploring his m... 阅读全文