結果

問題 No.1395 Less Sweet Alchemy
ユーザー tktk
提出日時 2022-04-29 01:38:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 247 bytes
コンパイル時間 1,823 ms
コンパイル使用メモリ 86,668 KB
実行使用メモリ 71,444 KB
最終ジャッジ日時 2023-09-10 17:49:31
合計ジャッジ時間 3,807 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,240 KB
testcase_01 AC 74 ms
71,032 KB
testcase_02 AC 74 ms
71,396 KB
testcase_03 AC 74 ms
71,388 KB
testcase_04 AC 75 ms
71,012 KB
testcase_05 AC 74 ms
71,368 KB
testcase_06 AC 76 ms
71,020 KB
testcase_07 AC 74 ms
71,428 KB
testcase_08 AC 76 ms
71,312 KB
testcase_09 AC 73 ms
71,152 KB
testcase_10 AC 74 ms
71,420 KB
testcase_11 AC 76 ms
71,444 KB
testcase_12 AC 74 ms
71,132 KB
testcase_13 AC 75 ms
71,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,x = map(int,input().split())
a = list(map(int,input().split()))
a.sort()
t_1 = False
t_2 = False
for i in range(n):
    if a[i] <= x:
        t_1 = True
    if a[i] >= x:
        t_2 = True
if t_1 and t_2:
    print("Yes")
else:
    print("No")
0