結果
問題 | No.70 睡眠の重要性! |
ユーザー | nobigomu |
提出日時 | 2018-03-21 18:37:01 |
言語 | Lua (LuaJit 2.1.1696795921) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 298 bytes |
コンパイル時間 | 412 ms |
コンパイル使用メモリ | 5,312 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-07 00:59:56 |
合計ジャッジ時間 | 996 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,380 KB |
testcase_01 | AC | 1 ms
4,380 KB |
testcase_02 | AC | 1 ms
4,380 KB |
testcase_03 | AC | 1 ms
4,376 KB |
testcase_04 | AC | 1 ms
4,376 KB |
testcase_05 | AC | 1 ms
4,384 KB |
ソースコード
print((function (f) local r = 0 for _=1,tonumber(io.stdin:read("*l")) do r = r + f(io.stdin:read("*l")) end return r end)(function (s) local t = {} s:gsub("%d+", function (e) table.insert(t,tonumber(e)) end) local l, r = t[1]*60+t[2], t[3]*60+t[4] return l <= r and r-l or 24*60-l+r end))