PathToMaster's blog

By PathToMaster, history, 8 years ago, In English

When i submitted my solution, the judge throws me Runtime Error on test 8, more specifically with this test:

10 10
.........*
.........*
........**
.........*
.........*
.........*
.........*
.........*
.........*
.........*

But i ran the program with this test in my computer and it works correctly and the output is correct:

YES
3 10
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
8 years ago, # |
  Vote: I like it +4 Vote: I do not like it

In test function third loop change i < p[i].size() to i < p[Y].size().

It will TLE anyway.