結果
| 問題 | No.652 E869120 and TimeZone |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-25 10:32:31 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 84 ms / 1,000 ms |
| コード長 | 327 bytes |
| 記録 | |
| コンパイル時間 | 287 ms |
| コンパイル使用メモリ | 78,008 KB |
| 最終ジャッジ日時 | 2025-12-04 00:58:58 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 30 |
ソースコード
#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))