进制转换
shishiness
这个作者很懒,什么都没留下…
展开
-
pat 甲级 素数 进制转换 A1015 Reversible Primes (20分)
1015 Reversible Primes (20分)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 reversible prime because its reverse 37 is also a prime.Now given any two po原创 2020-07-24 01:03:59 · 59 阅读 · 0 评论 -
pat 甲级 进制转换 A1058 A+B in Hogwarts (20分)
1058 A+B in Hogwarts (20分)If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver Sickles to a Galleon and twenty-nine Knuts to a Sickle, it's easy enough." You原创 2020-08-27 20:06:46 · 74 阅读 · 0 评论 -
pat 甲级 进制转换 A1010 Radix (25分)(二分法
1010 Radix (25分)Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a binary number.Now for any pair of positive integers N1 and N2, your task is to原创 2020-08-25 23:05:36 · 93 阅读 · 0 评论 -
pat 甲级 进制转换 A1019 General Palindromic Number (20分)
1019 General Palindromic Number (20分)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. All single digit numbers are palindromic numbers.Although palin原创 2020-07-23 19:32:14 · 43 阅读 · 0 评论