![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT甲级
君骚兮
一天比一天进步
展开
-
大整数运算之——1024 Palindromic Number
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 digit numbers are palindromic numbers...原创 2019-08-03 18:41:44 · 126 阅读 · 0 评论 -
质因子分解之——1059 Prime Factors
Given any positive integerN, you are supposed to find all of its prime factors, and write them in the formatN=p1k1×p2k2×⋯×pmkm.Input Specification:Each input file co...原创 2019-08-01 11:30:49 · 203 阅读 · 0 评论 -
质因子分解之——1096 Consecutive Factors
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 three consecutive numbers. Now given ...原创 2019-08-01 12:59:36 · 96 阅读 · 0 评论 -
大整数运算之——1023 Have Fun with Numbers
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 happens to be another 9-digit number con...原创 2019-08-01 20:14:53 · 99 阅读 · 0 评论 -
1002 A+B for Polynomials
This time, you are supposed to findA+BwhereAandBare two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the informa...原创 2019-08-12 21:36:25 · 185 阅读 · 1 评论