結果
| 問題 |
No.652 E869120 and TimeZone
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-23 22:31:11 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 282 bytes |
| コンパイル時間 | 848 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 8,192 KB |
| 最終ジャッジ日時 | 2024-12-17 13:15:33 |
| 合計ジャッジ時間 | 2,724 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 WA * 1 |
| other | AC * 8 WA * 22 |
ソースコード
from fractions import Fraction
H, M, S = raw_input().split()
H = int(H)
M = int(M)
S = S[3:].split('.')
A = int(S[0]) - 9
B = 0 if len(S) <= 1 else int(S[1])
B = B * 6
H += A
M += B
H += B / 60
M %= 60
H %= 24
M = '0' + str(M) if M < 10 else str(M)
print str(H) + ':' + str(M)