摘要:
题目描述 小 C 数学成绩优异,于是老师给小 C 留了一道非常难的数学作业题: 给定正整数 N 和 M,要求计算 Concatenate (1 .. N) Mod M 的值,其中 Concatenate (1 ..N)是将所有正整数 1, 2, …, N 顺序连接起来得到的数。例如,N = 13, 阅读全文
摘要:
描述 今天,他们在打一张叫DUSTII的地图,万恶的恐怖分子要炸掉藏在A区的SQC论坛服务器!我们SQC的人誓死不屈,即将于恐怖分子展开激战,准备让一个人守着A区,这样恐怖分子就不能炸掉服务器了。(一个人就能守住??这人是机械战警还是霹雳游侠?) 但是问题随之出现了,由于DustII中风景秀丽,而且 阅读全文
摘要:
Description 风见幽香有一个好朋友叫八云紫,她们经常一起看星星看月亮从诗词歌赋谈到 人生哲学。最近她们灵机一动,打算在幻想乡开一家小店来做生意赚点钱。这样的 想法当然非常好啦,但是她们也发现她们面临着一个问题,那就是店开在哪里,面 向什么样的人群。很神奇的是,幻想乡的地图是一个树形结构,幻 阅读全文
摘要:
Description In Korea, the naughtiness of the cheonggaeguri, a small frog, is legendary. This is a well deserved reputation, because the frogs jump thr 阅读全文
摘要:
Description Farmer John's cows, pampered since birth, have reached new heights of fastidiousness. They now require their barn to be immaculate. Farmer 阅读全文
摘要:
Description A network of m roads connects N cities (numbered from 1 to N). There may be more than one road connecting one city with another. Some of t 阅读全文
摘要:
Description Farmer John's N (1 include include include include include define RG register define il inline define iter iterator define Max(a,b) ((a) ( 阅读全文
摘要:
Description People in Silverland use coins.They have coins of value A1,A2,A3...An Silverland dollar.One day Tony opened his money box and found there 阅读全文
摘要:
Description Farmer 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 阅读全文
摘要:
Description As a reward for record milk production, Farmer John has decided to start paying Bessie the cow a small weekly allowance. FJ has a set of c 阅读全文