Skip to content

Commit 9657df0

Browse files
authored
Update 3.cpp
1 parent e9e44e9 commit 9657df0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

16/3.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using namespace std;
55
int n; // 전체 상담 개수
66
vector<int> t; // 각 상담을 완료하는데 걸리는 기간
77
vector<int> p; // 각 상담을 완료했을 때 받을 수 있는 금액
8-
int dp[15]; // 다이나믹 프로그래밍을 위한 1차원 DP 테이블 초기화
8+
int dp[16]; // 다이나믹 프로그래밍을 위한 1차원 DP 테이블 초기화
99
int maxValue;
1010

1111
int main(void) {
@@ -32,4 +32,4 @@ int main(void) {
3232
}
3333

3434
cout << maxValue << '\n';
35-
}
35+
}

0 commit comments

Comments
 (0)