結果

問題 No.1395 Less Sweet Alchemy
ユーザー i524i524
提出日時 2021-03-15 07:03:05
言語 TypeScript
(5.7.2)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 245 bytes
コンパイル時間 9,128 ms
コンパイル使用メモリ 229,964 KB
実行使用メモリ 41,204 KB
最終ジャッジ日時 2024-12-31 16:34:41
合計ジャッジ時間 9,652 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

const [[N, X], l] = require("fs").readFileSync("/dev/stdin", "utf8").split('\n').map(line => line.split(' ').map(s => parseInt(s, 10)));
if (Math.max(...l) >= X && Math.min(...l) <= X) {
    console.log('Yes');
} else {
    console.log('No');
}
0