pat 甲级 大整数加法 A1136 A Delayed Palindrome (20分)
1136 A Delayed Palindrome (20分)
Consider a positive integer N written in standard notation with k+1 digits ai as ak⋯a1a0 with 0≤ai<10 for all i and ak>0. Then N is palindromic if and only if ai=ak−i for all i. Zero is written
原创
2020-08-27 20:06:18 ·
105 阅读 ·
0 评论