結果
| 問題 |
No.652 E869120 and TimeZone
|
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2020-11-22 23:18:03 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 1,000 ms |
| コード長 | 269 bytes |
| コンパイル時間 | 367 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,264 KB |
| 最終ジャッジ日時 | 2024-06-11 12:33:36 |
| 合計ジャッジ時間 | 2,097 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 30 |
ソースコード
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