結果
問題 | No.2155 みちらcolor |
ユーザー |
![]() |
提出日時 | 2022-12-09 21:34:34 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 49 ms / 2,000 ms |
コード長 | 248 bytes |
コンパイル時間 | 256 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 59,520 KB |
最終ジャッジ日時 | 2024-10-14 20:45:29 |
合計ジャッジ時間 | 4,627 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 64 |
ソースコード
n,m,l = map(int,input().split()) a = list(map(int,input().split())) dp = [0] * 1001 dp[l] = 1 for i in range(n): ndp = dp[::] for j in range(1001): if dp[j] == 1: ndp[(j + a[i]) // 2] = 1 dp = ndp if dp[m]: print("Yes") else: print("No")