結果

問題 No.1395 Less Sweet Alchemy
コンテスト
ユーザー terry_u16
提出日時 2021-02-14 21:23:56
言語 PyPy3
(7.3.23)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 60 ms / 2,000 ms
+ 280µs
コード長 228 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 260 ms
コンパイル使用メモリ 96,492 KB
実行使用メモリ 79,028 KB
最終ジャッジ日時 2026-08-23 04:26:09
合計ジャッジ時間 2,263 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n, x = map(int, input().split())
c = list(map(int, input().split()))

lower = False
upper = False

for ci in c:
    if ci >= x:
        upper = True
    if ci <= x:
        lower = True

print("Yes" if lower and upper else "No")
0