結果
| 問題 |
No.2155 みちらcolor
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-09 22:52:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 328 bytes |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 82,060 KB |
| 実行使用メモリ | 62,116 KB |
| 最終ジャッジ日時 | 2024-10-14 22:41:04 |
| 合計ジャッジ時間 | 5,313 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 61 WA * 3 |
ソースコード
n, m, l = map(int, input().split())
a = list(map(int, input().split()))
dp = [[False]*(1100) for i in range(n+1)]
dp[0][l] = True
for i in range(1, n+1):
for j in range(1100):
dp[i][j] |= dp[i-1][j]
if dp[i-1][j]:
dp[i][(j+a[i-1])//2] = True
if dp[n-1][m]:
print('Yes')
else:
print("No")