We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3f2de0 commit ceeb080Copy full SHA for ceeb080
8/7.py
@@ -2,7 +2,7 @@
2
n = int(input())
3
4
# 앞서 계산된 결과를 저장하기 위한 DP 테이블 초기화
5
-d = [0] * 1000001
+d = [0] * 1001
6
7
# 다이나믹 프로그래밍(Dynamic Programming) 진행 (보텀업)
8
d[1] = 1
0 commit comments