結果
| 問題 | 
                            No.652 E869120 and TimeZone
                             | 
                    
| コンテスト | |
| ユーザー | 
                             nobigomu
                         | 
                    
| 提出日時 | 2018-07-09 12:14:08 | 
| 言語 | Lua  (LuaJit 2.1.1734355927)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 339 bytes | 
| コンパイル時間 | 222 ms | 
| コンパイル使用メモリ | 6,816 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-11 12:26:25 | 
| 合計ジャッジ時間 | 1,019 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 5 | 
| other | AC * 30 | 
ソースコード
print((function (h0, m0, d, d0)
	local t=d:sub(-2,-2)=="." and
		(h0-d0+tonumber(d:sub(1,-3)))*60+m0+tonumber(d:sub(1,1)..d:sub(-1))*6 or
		(h0-d0+tonumber(d))*60+m0
	local h,m=math.floor(t/60)%24,t%60
	return string.format("%02.0f:%02.0f",h,m)
end)(io.stdin:read("*n"), io.stdin:read("*n"), io.stdin:read("*l"):match("([%+%-%.%d]+)"), 9))
            
            
            
        
            
nobigomu