結果

問題 No.652 E869120 and TimeZone
ユーザー pluto77pluto77
提出日時 2018-02-25 10:32:31
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 1,000 ms
コード長 327 bytes
コンパイル時間 1,151 ms
コンパイル使用メモリ 6,592 KB
実行使用メモリ 6,092 KB
最終ジャッジ日時 2023-09-02 05:25:17
合計ジャッジ時間 3,021 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,092 KB
testcase_01 AC 12 ms
5,980 KB
testcase_02 AC 12 ms
6,064 KB
testcase_03 AC 12 ms
5,932 KB
testcase_04 AC 12 ms
5,908 KB
testcase_05 AC 11 ms
6,016 KB
testcase_06 AC 11 ms
6,040 KB
testcase_07 AC 12 ms
5,900 KB
testcase_08 AC 12 ms
5,912 KB
testcase_09 AC 11 ms
5,980 KB
testcase_10 AC 11 ms
5,896 KB
testcase_11 AC 12 ms
5,904 KB
testcase_12 AC 12 ms
5,972 KB
testcase_13 AC 11 ms
5,980 KB
testcase_14 AC 11 ms
5,976 KB
testcase_15 AC 12 ms
5,912 KB
testcase_16 AC 11 ms
6,000 KB
testcase_17 AC 11 ms
6,016 KB
testcase_18 AC 12 ms
5,908 KB
testcase_19 AC 11 ms
6,000 KB
testcase_20 AC 11 ms
6,044 KB
testcase_21 AC 12 ms
5,908 KB
testcase_22 AC 12 ms
6,000 KB
testcase_23 AC 12 ms
6,020 KB
testcase_24 AC 12 ms
5,912 KB
testcase_25 AC 12 ms
5,996 KB
testcase_26 AC 11 ms
5,976 KB
testcase_27 AC 11 ms
5,988 KB
testcase_28 AC 11 ms
5,984 KB
testcase_29 AC 12 ms
5,976 KB
testcase_30 AC 12 ms
6,012 KB
testcase_31 AC 12 ms
6,012 KB
testcase_32 AC 12 ms
5,980 KB
testcase_33 AC 11 ms
5,928 KB
testcase_34 AC 11 ms
6,000 KB
権限があれば一括ダウンロードができます

ソースコード

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