时区转换
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
Csvoner 喜欢用五个字符表示当前时间:HH:MM
。其中 HH
表示小时,MM
表示分钟。如果小时数或分钟数为一位数,则补一个 0
,比如 03:09
。
Csvoner 和小伙伴 Vv 不在同一个时区。Csvoner 在 时区, Vv 在 时区。简单来说,Vv 的时间为 Csvoner 时间往前调 个小时。
现在给出 Csvoner 当前的时间,请求出 Vv 当前的时间。即求 Csvoner 所在时间的 个小时之前是什么时间。
输入格式
输入五个字符,为 Csvoner 当前的时间。
输出格式
输出五个字符,为 Vv 当前的时间。
23:15
08:15
15:30
00:30
08:30
17:30
数据规模与约定
对于 的数据,保证时间合法(即为 00:00
到 23:59
之间)。
- 子任务 1(30 分):保证输入时间为
20:14
。 - 子任务 2(30 分):保证
HH
所表示的时间为15
到23
之间。 - 子任务 3(40 分):没有特殊限制。
西中经开联校 - 第 10 场周赛
- Status
- Done
- Rule
- IOI
- Problem
- 4
- Start at
- 2025-3-15 19:00
- End at
- 2025-3-16 12:00
- Duration
- 2 hour(s)
- Host
- Partic.
- 19