結果
問題 | No.2015 Stair Counter |
ユーザー | 👑 obakyan |
提出日時 | 2022-07-22 22:10:08 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 43 ms / 2,000 ms |
コード長 | 237 bytes |
コンパイル時間 | 193 ms |
コンパイル使用メモリ | 7,204 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-04 06:34:34 |
合計ジャッジ時間 | 1,967 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
local t = io.read("*n") for i = 1, t do local n, m = io.read("*n", "*n") local z = 0 local f = true for i = 1, n do local a = io.read("*n") if a < z then f = false end z = m - a end print(f and "Yes" or "No") end