Runtime Error but index is in bounds

Правка en1, от tejas2, 2023-06-07 16:34:34

This is my submission 208898289 for the problem 1702E — Split Into Two Sets (1702E - Split Into Two Sets). I am getting runtime error on testcase-2, and the Diagnostics Hint in the Verdict shows index-out-of-bounds for visited array. I am unable to find any reason for this happening. Also, I tried submitting the solution increasing the size of visited array by 10 (208897546), but I am getting RTE again. Can someone help?

Теги graphs, dfs, connected component, colorings

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский tejas2 2023-06-07 16:34:34 482 Initial revision (published)