結果
| 問題 |
No.525 二度寝の季節
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-23 16:15:04 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 272 bytes |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-22 15:19:48 |
| 合計ジャッジ時間 | 996 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
ソースコード
s = io.read()
a = tonumber(string.sub(s, 1, 2))
b = tonumber(string.sub(s, 4, 5))
b = b + 5
if(60 <= b) then
b = b - 60
a = a + 1
if(a == 24) then a = 0 end
end
as = string.format("%02d", a)
bs = string.format("%02d", b)
io.write(as)
io.write(":")
io.write(bs)