上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页
摘要: Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared by the tw 阅读全文
posted @ 2018-02-05 18:39 ZHUQW 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 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-02-05 17:45 ZHUQW 阅读(137) 评论(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-02-05 15:53 ZHUQW 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 最大公约数 最小公倍数: a、b的最大公约数是c,则a、b的最小公倍数是a / c * b。 分数运算 1、表示:struct frac{ int up, down }, 运算以假分数形式进行, 输出时再化为代分数。乘除法时,分子分母使用长整数保存。 2、化简: 化简在每一次计算完后进行,先检查分母 阅读全文
posted @ 2018-02-05 13:35 ZHUQW 阅读(451) 评论(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-02-05 12:17 ZHUQW 阅读(174) 评论(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-02-05 10:50 ZHUQW 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 * p2^k2 *…*pm^km. Input Specif 阅读全文
posted @ 2018-02-05 09:39 ZHUQW 阅读(128) 评论(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-02-05 00:13 ZHUQW 阅读(110) 评论(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-02-04 23:31 ZHUQW 阅读(106) 评论(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-02-04 22:58 ZHUQW 阅读(102) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页