Блог пользователя Lemur95

Автор Lemur95, история, 2 года назад, По-английски

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!

  • Проголосовать: нравится
  • +14
  • Проголосовать: не нравится

»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I don t understand why you are getting downvoted