結果

問題 No.652 E869120 and TimeZone
ユーザー kwnwsdnckwnwsdnc
提出日時 2018-03-21 17:39:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 339 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 10,744 KB
実行使用メモリ 8,028 KB
最終ジャッジ日時 2023-09-07 00:58:24
合計ジャッジ時間 2,017 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,816 KB
testcase_01 AC 14 ms
7,940 KB
testcase_02 WA -
testcase_03 AC 14 ms
7,864 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 15 ms
7,828 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 15 ms
7,864 KB
testcase_13 AC 15 ms
7,924 KB
testcase_14 AC 15 ms
7,956 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 15 ms
7,924 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 15 ms
7,928 KB
testcase_26 WA -
testcase_27 AC 14 ms
7,876 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 15 ms
7,796 KB
testcase_33 AC 16 ms
7,992 KB
testcase_34 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
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)
0