Lemur95's blog

By Lemur95, history, 3 years ago, In English

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!

  • Vote: I like it
  • +14
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Edit: Issue resolved. Turns out printing ' ' after the last number of each line leads to WA :p. Why tho? :(

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I don t understand why you are getting downvoted