結果
| 問題 | No.2155 みちらcolor |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-09 22:56:56 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 31 ms / 2,000 ms |
| + 448µs | |
| コード長 | 353 bytes |
| 記録 | |
| コンパイル時間 | 74 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 62,464 KB |
| 最終ジャッジ日時 | 2026-09-17 09:02:58 |
| 合計ジャッジ時間 | 5,115 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 64 |
ソースコード
n, m, l = map(int, input().split())
A = list(map(int, input().split()))
DP = [[False for _ in range(1001)] for _ in range(n + 1)]
DP[0][l] = True
for i in range(n):
a = A[i]
for j in range(1001):
if DP[i][j]:
DP[i + 1][j] = True
DP[i + 1][(j + a) // 2] = True
if DP[n][m]:
print("Yes")
else:
print("No")