結果
| 問題 | No.652 E869120 and TimeZone |
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2020-11-22 23:15:18 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 115 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,264 KB |
| 最終ジャッジ日時 | 2024-07-23 16:47:37 |
| 合計ジャッジ時間 | 2,712 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 29 WA * 1 |
ソースコード
from decimal import Decimal
a, b, S = input().split()
a = int(a)
b = int(b)
S = Decimal(S[3:])
a -= 9
S *= 60
a += S // 60
b += S % 60
if b > 60:
a += 1
b -= 60
elif b < 0:
a -= 1
b += 60
if a < 0:
a += 24
a %= 24
print('%02d:%02d' % (a, b))
c-yan