上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页
摘要: My birthday is coming up and traditionally I’mserving pie. Not just one pie, no, I have a numberN of them, of various tastes and of various sizes. Fof 阅读全文
posted @ 2017-05-16 15:14 Asimple 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Recently your team noticed that the computer you use to practice for programming contests is notgood enough anymore. Therefore, you decide to buy a ne 阅读全文
posted @ 2017-05-16 10:04 Asimple 阅读(232) 评论(0) 推荐(0) 编辑
摘要: Some of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve it to open that doors. Because there is no ot 阅读全文
posted @ 2017-05-12 20:36 Asimple 阅读(173) 评论(0) 推荐(0) 编辑
摘要: A Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has 阅读全文
posted @ 2017-05-10 19:35 Asimple 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 题目1 : Font Size 题目1 : Font Size 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 Steven loves reading book on his phone. The book he reads now consists of N par 阅读全文
posted @ 2017-05-01 20:27 Asimple 阅读(359) 评论(0) 推荐(0) 编辑
摘要: A prime number p≥2 is an integer which is evenly divisible by only two integers: 1 and p. A composite integer is one which is not prime. The fundament 阅读全文
posted @ 2017-04-29 16:13 Asimple 阅读(477) 评论(0) 推荐(0) 编辑
摘要: InputThe first line of input consists of an integers T where 1≤T≤1000, the number of test cases. Then follow T lines, each containing four integers a, 阅读全文
posted @ 2017-04-28 17:51 Asimple 阅读(270) 评论(0) 推荐(0) 编辑
摘要: Freddy practices various kinds of alternative medicine, such as homeopathy. This practice is based on the belief that successively diluting some subst 阅读全文
posted @ 2017-04-28 11:06 Asimple 阅读(370) 评论(0) 推荐(0) 编辑
摘要: The factorial function, n! is defined thus for n a non-negative integer: 0! = 1 n! = n * (n-1)! (n > 0) We say that a divides b if there exists an int 阅读全文
posted @ 2017-04-27 20:47 Asimple 阅读(245) 评论(0) 推荐(0) 编辑
摘要: Input The first line of input contains one integer, giving the number of operations to perform.Then follow the operations, one per line, each of the f 阅读全文
posted @ 2017-04-27 12:45 Asimple 阅读(357) 评论(0) 推荐(0) 编辑
摘要: You start with a sequence of consecutive integers. You want to group them into sets. You are given the interval, and an integer P. Initially, each num 阅读全文
posted @ 2017-04-27 11:12 Asimple 阅读(284) 评论(0) 推荐(0) 编辑
摘要: Given a sequence of positive integers, count all contiguous subsequences (sometimes called substrings, in contrast to subsequences, which may leave ou 阅读全文
posted @ 2017-04-26 17:37 Asimple 阅读(419) 评论(0) 推荐(0) 编辑
摘要: The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room 阅读全文
posted @ 2017-04-26 15:40 Asimple 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 题目意思就是已知n的阶乘,求n。 当输入的阶乘小于10位数的时候,我们可以用long long将字符串转化成数字,直接计算。 而当输入的阶乘很大的时候,我们就可以利用位数去大概的估计n。 阅读全文
posted @ 2017-04-26 14:40 Asimple 阅读(413) 评论(0) 推荐(0) 编辑
摘要: We say that x is a perfect square if, for some integer b, x = b2. Similarly, x is a perfect cube if, for some integer b, x = b3. More generally, x is 阅读全文
posted @ 2017-04-25 17:07 Asimple 阅读(377) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页