Блог пользователя M.A.H.M.O.O.D

Автор M.A.H.M.O.O.D, история, 8 лет назад, По-английски

Good day to you all.

for a while now I've been trying to debug my solution for this problem 733C - Epidemic in Monstropolis but I haven't figured it out...I got WA on test 64 and the test data is too huge to see where I went wrong I was hoping if you guys could help me out I'd be very grateful.

The link to my code 22018901.

Thank you for reading.

:)

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

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

Try this test:

5

2 2 1 1 2

1

8

My suggestion: as soon as you finish the "ok", return

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

    Thank you very much man for your help it really means a lot.

    just adding a return statment solves the problem.

    :)