摘要: A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years 阅读全文
posted @ 2018-02-05 23:57 ZHUQW 阅读(161) 评论(0) 推荐(0) 编辑
摘要: People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzi 阅读全文
posted @ 2018-02-05 23:25 ZHUQW 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color 阅读全文
posted @ 2018-02-05 22:49 ZHUQW 阅读(95) 评论(0) 推荐(0) 编辑
摘要: People on Mars count their numbers with base 13: Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Earch is called "jan, feb, mar, apr, m 阅读全文
posted @ 2018-02-05 22:35 ZHUQW 阅读(132) 评论(0) 推荐(0) 编辑
摘要: If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123*105 with 阅读全文
posted @ 2018-02-05 20:47 ZHUQW 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑