Skip to content

Commit

Permalink
Merge pull request #4290 from abhideepd/patch-1
Browse files Browse the repository at this point in the history
Update usaco-1301.mdx
  • Loading branch information
SansPapyrus683 committed Feb 5, 2024
2 parents db56783 + df87e69 commit 78ad790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solutions/bronze/usaco-1301.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ int main() {
long long cost = k + 1; // Start the first subscription
for (long long d : days) {
// Should Bessie extend the most recent subscription?
if (d - last_day < k) {
if (d - last_day < k + 1) {
cost += d - last_day;
} else {
// Or just start a new one entirely?
Expand Down

0 comments on commit 78ad790

Please sign in to comment.