#abc222a. A - Four Digits
A - Four Digits
Score : points
问题描述
你将得到一个整数 ,其取值范围在 到 (包含两端点)之间。
你需要在该整数前面添加必要的零,并将其打印为一个四位数的字符串。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given an integer between and (inclusive).
Print it as a four-digit string after appending to it the necessary number of leading zeros.
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
321
Sample Output 1
0321
has three digits, so we need to add one leading zero to it to make it have four digits.
Sample Input 2
7777
Sample Output 2
7777
Sample Input 3
1
Sample Output 3
0001
update @ 2024/3/10 09:46:11