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