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

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

I was solving this Problem.

The root (supposed to be unique) is the second number in the first line.

But the checker shows different answer, and eventhough my answer is different than checker it still passes.

Or is it that checker is outputting something else ? like number of queries used or something?

My code

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

»
4 года назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится
  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    I thought the same for a while. But for test case 6, My code takes 2 queries but the participant output shows 1.

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

      If I understand correctly your program takes one query since 5 which is the root in this case is queried first.