結果

問題 No.1395 Less Sweet Alchemy
ユーザー 👑 terry_u16terry_u16
提出日時 2021-02-14 21:23:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 488 ms
コンパイル使用メモリ 87,020 KB
実行使用メモリ 71,488 KB
最終ジャッジ日時 2023-09-29 14:25:25
合計ジャッジ時間 2,289 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,380 KB
testcase_01 AC 69 ms
71,296 KB
testcase_02 AC 70 ms
71,156 KB
testcase_03 AC 69 ms
71,292 KB
testcase_04 AC 69 ms
71,488 KB
testcase_05 AC 68 ms
71,400 KB
testcase_06 AC 70 ms
71,384 KB
testcase_07 AC 70 ms
71,232 KB
testcase_08 AC 70 ms
71,124 KB
testcase_09 AC 69 ms
71,368 KB
testcase_10 AC 69 ms
71,100 KB
testcase_11 AC 69 ms
71,184 KB
testcase_12 AC 70 ms
71,412 KB
testcase_13 AC 70 ms
71,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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