cpinitiative / usaco-guide

A free collection of curated, high-quality resources to take you from Bronze to Platinum and beyond.
https://usaco.guide
Other
1.61k stars 483 forks source link

Contact Form Submission - Mistake (Problem Solution - The Bucket List (ID: usaco-856)) #4546

Closed maggieliu05 closed 3 months ago

maggieliu05 commented 3 months ago

Someone submitted the contact form!

URL: https://usaco.guide/problems/usaco-856/user-solutions Module: Problem Solution - The Bucket List (ID: usaco-856) Topic: Mistake Message: Implementation 2 - Sweep,LINE 25,change[end] -= amt; I think change[end + 1] -= amt; is right.

bqi343 commented 3 months ago

if the implementation is wrong, can you provide an example test case?

looks fine to me since all s_i, t_i are guaranteed to be distinct