Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Reputeless committed Dec 21, 2021
1 parent e7b0ac7 commit 5a9ea37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 007.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int main()
const int c1 = std::max(0, pos - 1);

// 候補のクラスのインデックス 2
const int c2 = std::min(pos, static_cast<int>(A.size() - 1));
const int c2 = std::min(pos, N - 1);

// 候補のクラス 1 のコスト
const int c1Cost = std::abs(A[c1] - b);
Expand Down
2 changes: 1 addition & 1 deletion 050.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int main()
int N, L;
std::cin >> N >> L;

// 0 段目から N 段目までの通り数を記録
// 0 段目から N 段目までの通り数を記録していく配列
std::vector<int> dp(N + 1);

// 0 段目では 1 通り
Expand Down

0 comments on commit 5a9ea37

Please sign in to comment.