Hi all,
Today I was unable to solve this problem: http://usaco.org/index.php?page=viewproblem2&cpid=213. My code is as follows, exactly following the official solution, yet, WA 7, 8, 9.
http://ideone.com/cV0eKj is my code. Thanks!
Why does my code fail?
Hi all,
Today I was unable to solve this problem: http://usaco.org/index.php?page=viewproblem2&cpid=213. My code is as follows, exactly following the official solution, yet, WA 7, 8, 9.
http://ideone.com/cV0eKj is my code. Thanks!