Docoding OJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
Login
Register
2513: 找出1~N范围内的所有回文数字
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:99
Solved:64
Submit
Submit Record
Statistics
ShowOff!
Description
一个数字,如果从左到右读与从右到左读是一样的,就称为回文数字,例如:383、19891都 是回文数字。
输入一个N值(N>0 && N<10000),请编程找出1到N范围内(包含1和N)的所有回文数字。
Sample Input
Copy
100
Sample Output
Copy
1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 99
Source/Category
青铜
循环
条件
强
蓝桥杯
Submit
Submit Record
Statistics
ShowOff!