結果

問題 No.2155 みちらcolor
ユーザー ikoma
提出日時 2022-12-09 23:04:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 82,404 KB
実行使用メモリ 69,632 KB
最終ジャッジ日時 2024-10-14 22:46:21
合計ジャッジ時間 4,844 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 64
権限があれば一括ダウンロードができます

ソースコード

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()
    for c in color:
        new.add(c)
        new.add((a+c)//2)
    color = new

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