結果

問題 No.1395 Less Sweet Alchemy
ユーザー tk
提出日時 2022-04-29 01:38:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 247 bytes
コンパイル時間 412 ms
コンパイル使用メモリ 82,284 KB
実行使用メモリ 53,492 KB
最終ジャッジ日時 2024-06-28 09:00:50
合計ジャッジ時間 1,563 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

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