#abc258a. A - When?
A - When?
Score : points
问题描述
AtCoder新手比赛通常在JST时间21:00开始,并持续100分钟。
你将得到一个整数,其取值范围为到(包含两端点)。
请按照HH:MM
的格式打印出从21:00开始经过分钟的时间,其中HH
表示24小时制下的小时数,而MM
表示分钟数。如果小时数或分钟数仅有一位数,则在前面添加一个,以两位整数的形式表示。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
AtCoder Beginner Contest usually starts at 21:00 JST and lasts for minutes.
You are given an integer between and (inclusive). Print the time minutes after 21:00 in the HH:MM
format, where HH
denotes the hour on the -hour clock and MM
denotes the minute. If the hour or the minute has just one digit, append a to the beginning to represent it as a -digit integer.
Constraints
- is an integer between and (inclusive).
Input
Input is given from Standard Input in the following format:
Output
Print the time minutes after 21:00 in the format specified in the Problem Statement.
Sample Input 1
63
Sample Output 1
22:03
minutes after 21:00, it will be 22:03, so 22:03
should be printed.
The following outputs would be judged incorrect:
10:03
22:3
Sample Input 2
45
Sample Output 2
21:45
Sample Input 3
100
Sample Output 3
22:40
update @ 2024/3/10 10:56:51