結果
問題 | No.70 睡眠の重要性! |
ユーザー |
👑 |
提出日時 | 2019-04-01 23:56:43 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 67 ms |
コンパイル使用メモリ | 6,820 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-27 06:03:38 |
合計ジャッジ時間 | 531 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
n = io.read("*n", "*l")res = 0for i = 1, n dos = io.read()a, b, c, d = string.match(s, "(%d+):(%d+) (%d+):(%d+)")a, b, c, d = tonumber(a), tonumber(b), tonumber(c), tonumber(d)if(c < a or (c == a and d < b)) then c = c + 24 endres = res + (c - a) * 60 + d - bendprint(res)