![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学问题
ZXX_1999
这个作者很懒,什么都没留下…
展开
-
1069 The Black Hole of Numbers (20 分)
1069The Black Hole of Numbers(20分)For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order...原创 2019-09-24 15:14:22 · 95 阅读 · 0 评论 -
1023 Have Fun with Numbers (20 分大整数计算
1023Have Fun with Numbers(20分)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 246913578, which happe...原创 2019-10-03 15:52:28 · 405 阅读 · 0 评论 -
1059 Prime Factors (25 分)质因子 易错题
1059Prime Factors(25分)Given any positive integerN, you are supposed to find all of its prime factors, and write them in the formatN=p1k1×p2k2×⋯×pmkm.Input Specifi...原创 2019-10-02 20:31:34 · 146 阅读 · 0 评论 -
1096 Consecutive Factors (20 分)
1096Consecutive Factors(20分)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, and 7 are the thre...原创 2019-10-02 19:26:48 · 115 阅读 · 0 评论 -
1078 Hashing (25 分) 解决冲突采用正向增加的二次探查法
返回1078Hashing(25分)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. The hash function is defi...原创 2019-10-02 00:19:39 · 172 阅读 · 0 评论 -
1015 Reversible Primes (20 分)可逆质数
1015Reversible Primes(20分)Areversible primein 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 reversible prime beca...原创 2019-10-01 21:43:51 · 381 阅读 · 0 评论 -
1088 Rational Arithmetic (20 分) 分数的运算
1088Rational Arithmetic(20分)For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient.Input Specification:Ea...原创 2019-10-01 01:14:53 · 120 阅读 · 0 评论 -
1081 Rational Sum (20 分) 分数计算+最大公约数
1081Rational Sum(20分)GivenNrational numbers in the formnumerator/denominator, you are supposed to calculate their sum.Input Specification:Each input file contains one test case. Each case ...原创 2019-09-26 14:31:46 · 125 阅读 · 0 评论 -
1049 Counting Ones (30 分)仔细找规律
1049Counting Ones(30分)The task is simple: given any positive integerN, you are supposed to count the total number of 1's in the decimal form of the integers from 1 toN. For example, givenNbei...原创 2019-09-25 21:30:51 · 126 阅读 · 0 评论 -
1024 Palindromic Number (25 分)大整数相加+会问+reverse倒置
返回1024Palindromic Number(25分)A number that will be the same when it is written forwards or backwards is known as aPalindromic Number. For example, 1234321 is a palindromic number. All single d...原创 2019-10-03 16:46:23 · 93 阅读 · 0 评论