結果
| 問題 | No.652 E869120 and TimeZone |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-27 23:08:19 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 286 bytes |
| 記録 | |
| コンパイル時間 | 327 ms |
| コンパイル使用メモリ | 77,644 KB |
| 最終ジャッジ日時 | 2025-12-04 00:59:46 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 WA * 1 |
| other | AC * 23 WA * 7 |
ソースコード
H, M, S = raw_input().split()
ans = int(H) * 60 + int(M)
S = S[3:].split('.')
sign = S[0][0]
A = int(S[0][1:])
B = 0 if len(S) <= 1 else int(S[1])
if sign == '-':
B *= -1
B = B * 6
C = 9 * 60
D = A * 60 + B - C
ans += D
ans %= 24 * 60
print "%02d:%02d" % (ans / 60, ans % 60)