結果

問題 No.1395 Less Sweet Alchemy
ユーザー 👑 KazunKazun
提出日時 2021-02-14 21:25:19
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 744 ms
コンパイル使用メモリ 87,060 KB
実行使用メモリ 71,508 KB
最終ジャッジ日時 2023-09-29 14:27:09
合計ジャッジ時間 1,835 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
71,400 KB
testcase_01 AC 58 ms
71,280 KB
testcase_02 AC 57 ms
71,360 KB
testcase_03 AC 58 ms
71,504 KB
testcase_04 AC 58 ms
71,448 KB
testcase_05 AC 60 ms
71,280 KB
testcase_06 AC 61 ms
71,508 KB
testcase_07 AC 59 ms
71,372 KB
testcase_08 AC 59 ms
71,292 KB
testcase_09 AC 59 ms
71,284 KB
testcase_10 AC 57 ms
71,284 KB
testcase_11 AC 57 ms
71,284 KB
testcase_12 AC 58 ms
71,356 KB
testcase_13 AC 58 ms
71,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,X=map(int,input().split())
C=list(map(int,input().split()))
C=[c-X for c in C]

F=G=H=0
for c in C:
    if c>0:
        F=1
    elif c==0:
        G=1
    else:
        H=1

print("Yes" if (F and H) or G else "No")
0