8.3.6 Kiki & Little Kiki 2
摘要:Problem Description There are n lights in a circle numbered from 1 to n. The left of light 1 is light n, and the left of light k (1= 0), if the left of light i is on !!! Given the initiation state, please find all lights’ state after M second. (2 5 #include 6 #include 7 #include ...
阅读全文
posted @
2013-09-23 17:43
cssystem
阅读(221)
推荐(0)
8.3.5 Problem of Precision
摘要:Problem of PrecisionTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 24 Accepted Submission(s): 20 Problem Description Input The first line of input gives the number of cases, T. T test cases follow, each on a sepa...
阅读全文
posted @
2013-09-23 17:42
cssystem
阅读(223)
推荐(0)
8.3.4 奥运
摘要:奥运Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 82 Accepted Submission(s): 40 Problem Description 北京迎来了第一个奥运会,我们的欢呼声响彻中国大地,所以今年的奥运金牌 day day up!比尔盖兹坐上鸟巢里,手里摇着小纸扇,看的不亦乐乎,被俺们健儿的顽强拼搏的精神深深的感动了。反正我的钱也多的没地方放了,他对自己说,我自己也来举办一个奥运会,看谁的更火。...
阅读全文
posted @
2013-09-23 17:39
cssystem
阅读(138)
推荐(0)
8.3.3 Pendant
摘要:PendantTime Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 58 Accepted Submission(s): 41 Problem Description On Saint Valentine's Day, Alex imagined to present a special pendant to his girl friend made by K kind of pearls. The pendant...
阅读全文
posted @
2013-09-23 17:34
cssystem
阅读(261)
推荐(0)
8.3.2 A Simple Math Problem
摘要:A Simple Math ProblemTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 44 Accepted Submission(s): 42 Problem Description Lele now is thinking about a simple function f(x).If x = 10 f(x) = a0 * f(x-1) + a1 * f(x-2) + a2 * f(x-3) + ……...
阅读全文
posted @
2013-09-23 17:32
cssystem
阅读(167)
推荐(0)
8.3.1 Tr A
摘要:最惊心动魄的矩阵一章~~~Tr ATime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 51 Accepted Submission(s): 45 Problem Description A为一个方阵,则Tr A表示A的迹(就是主对角线上各项的和),现要求Tr(A^k)%9973。 Input 数据的第一行是一个T,表示有T组数据。每组数据的第一行有n(2 2 #include ...
阅读全文
posted @
2013-09-23 17:13
cssystem
阅读(288)
推荐(1)