摘要:
士兵杀敌(二)时间限制:1000 ms | 内存限制:65535 KB难度:5描述南将军手下有N个士兵,分别编号1到N,这些士兵的杀敌数都是已知的。小工是南将军手下的军师,南将军经常想知道第m号到第n号士兵的总杀敌数,请你帮助小工来回答南将军吧。南将军的某次询问之后士兵i可能又杀敌q人,之后南将军再询问的时候,需要考虑到新增的杀敌数。输入只有一组测试数据第一行是两个整数N,M,其中N表示士兵的个数(1<N<1000000),M表示指令的条数。(1<M<100000)随后的一行是N个整数,ai表示第i号士兵杀敌数目。(0<=ai<=100)随后的M行每行是一条 阅读全文
posted @ 2012-07-26 18:59
可笑痴狂
阅读(364)
评论(0)
推荐(0)
摘要:
CalendarTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 8936Accepted: 3354DescriptionA calendar is a system for measuring time, from hours and minutes, to months and days, and finally to years and centuries. The terms of hour, day, month, year and century are all units of time measurements 阅读全文
posted @ 2012-07-26 17:46
可笑痴狂
阅读(988)
评论(2)
推荐(0)
摘要:
Counterfeit DollarTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 33094Accepted: 10495DescriptionSally Jones has a dozen Voyageur silver dollars. However, only eleven of the coins are true silver dollars; one coin is counterfeit even though its color and size make it indistinguishable from 阅读全文
posted @ 2012-07-26 16:10
可笑痴狂
阅读(2226)
评论(0)
推荐(0)
摘要:
Metric TimeTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 2369Accepted: 738DescriptionThe Metric Time is one of the most important points of PSOS Election Programme. The Time can be much easier calculated in operating systems. These systems are then more stable, which meets the main goal o 阅读全文
posted @ 2012-07-26 13:42
可笑痴狂
阅读(500)
评论(0)
推荐(0)