結果
| 問題 |
No.652 E869120 and TimeZone
|
| コンテスト | |
| ユーザー |
kwnwsdnc
|
| 提出日時 | 2018-03-21 17:40:47 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 1,000 ms |
| コード長 | 342 bytes |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-11 12:24:37 |
| 合計ジャッジ時間 | 1,867 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 30 |
ソースコード
ln=input().split()
hour=int(ln[0])
minute=int(ln[1])
time=24*60
lag=float(ln[2].replace('UTC',''))-9.0
time+=hour*60+minute
time+=lag*60
hour=int(time//60)%24
minute=int(round(time%60,1))
if hour<10:
hour='0'+str(hour)
else:
hour=str(hour)
if minute<10:
minute='0'+str(minute)
else:
minute=str(minute)
print(hour+':'+minute)
kwnwsdnc