結果

問題 No.2155 みちらcolor
ユーザー ああいい
提出日時 2022-12-11 13:32:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 250 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 58,496 KB
最終ジャッジ日時 2024-10-15 10:43:50
合計ジャッジ時間 5,145 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 60 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M,L = map(int,input().split())
A = list(map(int,input().split()))
C = 1000
dp = [0] * (C + 1)
dp[L] = 1
for a in A:
    for i in range(C + 1):
        if dp[i] == 1:
            dp[(i + a) // 2] = 1
if dp[M]:
    print('Yes')
else:
    print('No')
0