結果
問題 |
No.1395 Less Sweet Alchemy
|
ユーザー |
👑 |
提出日時 | 2021-02-21 16:10:17 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 222 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 6,820 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-19 14:15:29 |
合計ジャッジ時間 | 783 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
local mmi, mma = math.min, math.max local n, x = io.read("*n", "*n") local l, r = 100, 0 for i = 1, n do local c = io.read("*n") l = mmi(l, c) r = mma(r, c) end local f = l <= x and x <= r print(f and "Yes" or "No")