Table of Contents
Edit on GithubUSACO Platinum 2018 February - At Large
Author: Benjamin Qi
Although the intended solution is extremely difficult, this is not too hard to fakesolve! First write some DP that is somehow fast enough to pass test cases 1-6.
Code
This won't work for test cases 7-11, but these test cases are quite special!
How So?
For a legit (?) DP solution, see Eric Zhang's comment.
Give Us Feedback on USACO Platinum 2018 February - At Large!
Join the Discussion!
Feel free to voice your thoughts in the comments section.