結果
問題 | No.652 E869120 and TimeZone |
ユーザー |
|
提出日時 | 2023-07-08 08:52:03 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 1,000 ms |
コード長 | 434 bytes |
コンパイル時間 | 179 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 54,044 KB |
最終ジャッジ日時 | 2024-07-22 04:41:56 |
合計ジャッジ時間 | 2,903 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 30 |
ソースコード
from math import isclosedef main():a, b, c = input().split()h = int(a)m = int(b)delta = float(c.replace("UTC", "")) - 9h += int(delta)h = h % 24m += round((delta - int(delta)) * 60)if not isclose(m, 0):m += 60h -= 1if not isclose(h, 0):h += 24h += m // 60m = m % 60h = h % 24print(f"{h:02d}:{m:02d}")if __name__ == "__main__":main()