結果

問題 No.652 E869120 and TimeZone
ユーザー pluto77
提出日時 2018-02-25 10:32:31
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 1,000 ms
コード長 327 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,528 KB
最終ジャッジ日時 2024-06-11 12:21:49
合計ジャッジ時間 1,527 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki652
import math

a,b,s=raw_input().split()
x=s.lstrip('UTC')
n=float(x)
n1=math.trunc(n)
m=n-n1
x=m*60
x1=int(round(x))
x2=n1*60+x1
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))
0