上一页 1 ··· 78 79 80 81 82 83 84 85 86 ··· 91 下一页
摘要: Zhejiang University has 40000 students and provides 2500 courses. Now given the registered course list of each student, you are supposed to output the 阅读全文
posted @ 2018-04-22 19:52 王清河 阅读(113) 评论(0) 推荐(0)
摘要: Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the 阅读全文
posted @ 2018-04-22 18:51 王清河 阅读(165) 评论(0) 推荐(0)
摘要: A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number 阅读全文
posted @ 2018-04-22 14:53 王清河 阅读(337) 评论(0) 推荐(0)
摘要: Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469135 阅读全文
posted @ 2018-04-21 20:28 王清河 阅读(148) 评论(0) 推荐(0)
摘要: 本题要求计算A/B,其中A是不超过1000位的正整数,B是1位正整数。你需要输出商数Q和余数R,使得A = B * Q + R成立。 输入格式: 输入在1行中依次给出A和B,中间以1空格分隔。 输出格式: 在1行中依次输出Q和R,中间以1空格分隔。 输入样例: 输出样例: 阅读全文
posted @ 2018-04-21 19:10 王清河 阅读(116) 评论(0) 推荐(0)
摘要: Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3*5*6*7, where 5, 6, a 阅读全文
posted @ 2018-04-18 20:13 王清河 阅读(114) 评论(0) 推荐(0)
摘要: The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. 阅读全文
posted @ 2018-04-18 19:45 王清河 阅读(114) 评论(0) 推荐(0)
摘要: A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re 阅读全文
posted @ 2018-04-10 19:22 王清河 阅读(121) 评论(0) 推荐(0)
摘要: Given a sequence of positive integers and another positive integer p. The sequence is said to be a "perfect sequence" if M <= m * p where M and m are 阅读全文
posted @ 2018-03-29 12:28 王清河 阅读(167) 评论(0) 推荐(0)
摘要: Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can 阅读全文
posted @ 2018-03-29 11:54 王清河 阅读(115) 评论(0) 推荐(0)
上一页 1 ··· 78 79 80 81 82 83 84 85 86 ··· 91 下一页