"Out of Bounds" Error

Revision en1, by whatthemomooofun1729, 2023-05-21 09:53:56

I was working on the problem 1371D — Grid-00100 and I submitted this code: 206708949. For some reason, Codeforces said that my code had an "out of bounds" error on line 79. I'm not sure why this error occurred, because my matrix indices are clearly within bounds. Additionally, on test case 8 of test 2, the checker comment was "wrong answer Integer -1849096384 violates the range [0, 18] (test case 8)", but I tested test case 8 locally and got the correct answer. Does anyone know why this could be happening? Your help is appreciated!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English whatthemomooofun1729 2023-05-21 09:53:56 676 Initial revision (published)