結果
| 問題 |
No.652 E869120 and TimeZone
|
| コンテスト | |
| ユーザー |
tails1434
|
| 提出日時 | 2020-01-28 07:31:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 1,000 ms |
| コード長 | 284 bytes |
| コンパイル時間 | 817 ms |
| コンパイル使用メモリ | 82,324 KB |
| 実行使用メモリ | 53,436 KB |
| 最終ジャッジ日時 | 2024-06-11 12:31:02 |
| 合計ジャッジ時間 | 2,399 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 30 |
ソースコード
def main():
a, b, S = input().split()
a = int(a)
b = int(b)
c = float(S.replace('UTC', '')) - 9
t = a * 60 + b + c * 60
h = int(t // 60 % 24)
m = int(t % 60 + 0.1)
print('{0:02}:{1:02}'.format(h, m))
if __name__ == "__main__":
main()
tails1434