結果
問題 | No.652 E869120 and TimeZone |
ユーザー |
|
提出日時 | 2018-02-24 10:37:53 |
言語 | Python2 (2.7.18) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 270 bytes |
コンパイル時間 | 153 ms |
コンパイル使用メモリ | 6,948 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-17 13:41:50 |
合計ジャッジ時間 | 1,448 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 29 WA * 1 |
ソースコード
#yuki652 a,b,s=raw_input().split() x=s.lstrip('UTC') x1=float(x) x2=int(x1*60) ref=9*60 ref1=x2-ref res=int(a)*60+int(b) res1=ref1+res if res1<0: res1+=24*60 res2=res1/60 if res2>=24: res2=res2-24 res3=res1%60 print ''.join(str(res2).zfill(2)+':'+str(res3).zfill(2))