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!
Edit: Issue resolved. Turns out printing ' ' after the last number of each line leads to WA :p. Why tho? :(
I don t understand why you are getting downvoted
It is very strange indeed, stranger