摘要:
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
阅读(140)
评论(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
阅读(143)
评论(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
阅读(160)
评论(0)
推荐(0)
摘要:
最大公约数 最小公倍数: a、b的最大公约数是c,则a、b的最小公倍数是a / c * b。 分数运算 1、表示:struct frac{ int up, down }, 运算以假分数形式进行, 输出时再化为代分数。乘除法时,分子分母使用长整数保存。 2、化简: 化简在每一次计算完后进行,先检查分母 阅读全文
posted @ 2018-02-05 13:35
ZHUQW
阅读(481)
评论(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
阅读(180)
评论(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
阅读(196)
评论(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
阅读(131)
评论(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
阅读(116)
评论(0)
推荐(0)

浙公网安备 33010602011771号