結果
| 問題 | No.1395 Less Sweet Alchemy |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-21 16:10:17 |
| 言語 | Lua (LuaJit 2.1.1787165859) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 103µs | |
| コード長 | 222 bytes |
| 記録 | |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 7,728 KB |
| 実行使用メモリ | 9,792 KB |
| 最終ジャッジ日時 | 2026-08-31 02:59:50 |
| 合計ジャッジ時間 | 1,187 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")