摘要: 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) 编辑