摘要:
题目描述 小 C 数学成绩优异,于是老师给小 C 留了一道非常难的数学作业题: 给定正整数 N 和 M,要求计算 Concatenate (1 .. N) Mod M 的值,其中 Concatenate (1 ..N)是将所有正整数 1, 2, …, N 顺序连接起来得到的数。例如,N = 13, 阅读全文
摘要:
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 阅读全文