随笔分类 -  DP

摘要:B. Color the Fencetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIgor has fallen in love with Tanya. Now Igor wants to show his feelings and write a number on the fence opposite to Tanya's house. Igor thinks that the larger the number is, th 阅读全文
posted @ 2013-09-29 17:08 线性无关 阅读(203) 评论(0) 推荐(0)
摘要:小明系列故事——买年货 Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 1541 Accepted Submission(s): 663 Problem Description 春节将至,小明要去超市购置年货,于是小明去了自己经常去的都尚超市。 刚到超市,小明就发现超市门口聚集一堆人。用白云女士的话说就是:“那家伙,那场面,真是人山人海,锣鼓喧天,鞭炮齐呤,红旗招展。那可真是相当的壮观啊!”。好奇的小明走过去,奋力挤过人群,发现超市... 阅读全文
posted @ 2013-05-29 16:53 线性无关 阅读(153) 评论(0) 推荐(0)
摘要:DividingTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 51221Accepted: 12971DescriptionMarsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share of the marbles. This would be easy if all the marbles had the same valu. 阅读全文
posted @ 2013-05-26 18:53 线性无关 阅读(136) 评论(0) 推荐(0)
摘要:悼念512汶川大地震遇难同胞——珍惜现在,感恩生活 Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 9771Accepted Submission(s): 4123Problem Description急!灾区的食物依然短缺!为了挽救灾区同胞的生命,心系灾区同胞的你准备自己采购一些粮食支援灾区,现在假设你一共有资金n元,而市场有m种大米,每种大米都是袋装产品,其价格不等,并且只能整袋购买。请问:你用有限的资金最多能采购多少公斤... 阅读全文
posted @ 2013-05-26 14:19 线性无关 阅读(153) 评论(0) 推荐(0)
摘要:Cash MachineTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 22620Accepted: 7928DescriptionA Bank plans to install a machine for cash withdrawal. The machine is able to deliver appropriate @ bills for a requested cash amount. The machine uses exactly N distinct bill denominations, say Dk, k. 阅读全文
posted @ 2013-05-26 00:38 线性无关 阅读(99) 评论(0) 推荐(0)
摘要:Dollar DayzTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 2498Accepted: 1022DescriptionFarmer John goes to Dollar Days at The Cow Store and discovers an unlimited number of tools on sale. During his first visit, the tools are selling variously for $1, $2, and $3. Farmer John has exactly $. 阅读全文
posted @ 2013-05-25 23:50 线性无关 阅读(172) 评论(0) 推荐(0)
摘要:题目:Charlie's ChangeTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 2459Accepted: 648DescriptionCharlie is a driver of Advanced Cargo Movement, Ltd. Charlie drives a lot and so he often buys coffee at coffee vending machines at motorests. Charlie hates change. That is basically the setup 阅读全文
posted @ 2013-05-25 22:39 线性无关 阅读(317) 评论(1) 推荐(0)