結果
問題 | No.2155 みちらcolor |
ユーザー | roaris |
提出日時 | 2022-12-09 23:10:42 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 48 ms / 2,000 ms |
コード長 | 342 bytes |
コンパイル時間 | 260 ms |
コンパイル使用メモリ | 82,004 KB |
実行使用メモリ | 60,976 KB |
最終ジャッジ日時 | 2024-10-14 22:50:10 |
合計ジャッジ時間 | 4,946 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 64 |
ソースコード
N, M, L = map(int, input().split()) A = list(map(int, input().split())) dp = [False]*1010 dp[L] = True for i in range(N): ndp = [False]*1010 for j in range(1010): if dp[j]: ndp[j] = True k = (j+A[i])//2 ndp[k] = True dp = ndp if dp[M]: print('Yes') else: print('No')