質問編集履歴
3
half >> A
test
CHANGED
File without changes
|
test
CHANGED
@@ -88,7 +88,7 @@
|
|
88
88
|
|
89
89
|
|
90
90
|
|
91
|
-
if dp[N][
|
91
|
+
if dp[N][A]:
|
92
92
|
|
93
93
|
ans = "Yes"
|
94
94
|
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -103,3 +103,11 @@
|
|
103
103
|
|
104
104
|
|
105
105
|
```
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
追記
|
110
|
+
|
111
|
+
--
|
112
|
+
|
113
|
+
i, j に加えて現在のリストの情報kも必要ですよね
|
1
half → A
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,7 +68,7 @@
|
|
68
68
|
|
69
69
|
|
70
70
|
|
71
|
-
dp = [[False] * (
|
71
|
+
dp = [[False] * (A + 1)] * (N + 1)
|
72
72
|
|
73
73
|
dp[0][0] = True
|
74
74
|
|