Sussy behaviour on usaco problem

Revision en1, by Lemur95, 2022-04-25 15:50:59

Hello CF community,

I was solving problem 3 (Balancing Tree) from last USACO round, when I encountered some sussy behaviour. I submited my code, which in local testing passed both the examples, but upon grading, it passed only 1, the other one being WA. I have locally tested another subtask, with the same result (local testing led to a good result, but WA on grading).

Here is the code and here is the problem link. Hope I was clear enough with my issue and thanks in advance!

Have a good day!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Lemur95 2022-04-25 15:50:59 627 Initial revision (published)