結果

問題 No.652 E869120 and TimeZone
ユーザー nobigomu
提出日時 2018-05-27 22:23:36
言語 Lua
(LuaJit 2.1.1734355927)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 275 bytes
コンパイル時間 362 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 07:24:32
合計ジャッジ時間 1,305 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 29 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

print((function (h0, m0, d, d0)
	local t=(h0+d-d0)*60+m0
	local h,m=math.floor(t/60)%24,t%60
	if m>59 then h,m=h+1,0 end
	if h==24 then h=0 end
	return string.format("%02.0f:%02.0f",h,m)
end)(io.stdin:read("*n"), io.stdin:read("*n"), tonumber(io.stdin:read("*l"):sub(5)), 9))
0