Time Zone

TimeLimit:1000MS  MemoryLimit:32768KB
64-bit integer IO format:%I64d
未提交 | 登录后收藏
Problem Description
Chiaki often participates in international competitive programming contests. The time zone becomes a big problem.
Given a time in Beijing time (UTC +8), Chiaki would like to know the time in another time zone $s$.
Input
There are multiple test cases. The first line of input contains an integer $T$ ($1 \le T \le 10^6$), indicating the number of test cases. For each test case:
The first line contains two integers $a$, $b$ ($0 \le a \le 23, 0 \le b \le 59$) and a string $s$ in the format of "UTC+X'', "UTC-X'', "UTC+X.Y'', or "UTC-X.Y'' ($0 \le X, X.Y \le 14, 0 \le Y \le 9$).
Output
For each test, output the time in the format of $hh:mm$ (24-hour clock).
SampleInput
3
11 11 UTC+8
11 12 UTC+9
11 23 UTC+0
SampleOutput
11:11
12:12
03:23
Submit
题目统计信息详细
总AC数3
通过人数3
尝试人数3
总提交量14
AC率21.43%
AC该题后可以添加标签
贴完标签可以获得20ACB。
并且可以获得本题所有提交代码查看权限。
点击标题可以显示标签。
如果你还没认真思考过这题,请不要查看标签
如果您已经通过了该题,请务为该题贴上标签

T^T Online Judge

[BUG反馈] [FAQ] [闽ICP备17026590号-1]
当前版本:3.24 系统时间: