1587: 递增的5位数
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:36
Solved:21
Description
有一个
5 位数,已知他的个位是 n( n 是一个 0∼5 之间的整数),十位比个位大 1,百位比十位大 1,千位比百位大 1 ,万位比千位大 1 。
请从键盘输入这个数的个位 n,求出这个 5位数是多少?
比如,假设 n=1 ,那么这个
5 位数就是
54321 。
Input
一个整数 n( n 是 0∼5之间的整数)。
Output
求出满足条件的
5 位数。
Sample Input Copy
1
Sample Output Copy
54321