Блог пользователя pas.andrei

Автор pas.andrei, история, 9 лет назад, По-английски

I was trying to solve this problem, but I kept getting "Runtime error on test 1" until I changed the code a bit:

This into this. Can someone tell me why I got RTE before?

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

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

    OH, I think i found the explanation: in the RTE code it first checks if viz[x] != i, but x can be bigger than than the biggest index in the array viz. Thanks!