結果
問題 |
No.1205 Eye Drops
|
ユーザー |
👑 |
提出日時 | 2020-09-19 18:54:44 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 241 bytes |
コンパイル時間 | 251 ms |
コンパイル使用メモリ | 5,376 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-23 18:14:20 |
合計ジャッジ時間 | 1,703 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 37 |
ソースコード
local mab = math.abs local n, m = io.read("*n", "*n") local pos, tm = 0, 0 local v = true for i = 1, m do local t, p = io.read("*n", "*n") if t - tm < mab(p - pos) then v = false end pos, tm = p, t end print(v and "Yes" or "No")