Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

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

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
  • Проголосовать: не нравится

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

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

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

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