結果

問題 No.2155 みちらcolor
ユーザー ikoma
提出日時 2022-12-09 23:00:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 254 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 82,032 KB
実行使用メモリ 71,020 KB
最終ジャッジ日時 2024-10-14 22:45:19
合計ジャッジ時間 4,905 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 62 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M,L=map(int,input().split())
A=list(map(int,input().split()))

color = set()
color.add(L)
for a in A:
    new = set()
    new.add(a)
    for c in color:
        new.add(c)
        new.add((a+c)//2)
    color = new

print("Yes" if M in color else "No")
0