Hello everyone, I was solving today this graph problem : 598D - Igor In the Museum.
And below are my two submissions which only differs in size of an array, one is giving TLE and one is giving AC. According to me, there should be runtime error in 1st submission as array will go out of bound but how Codeforces is giving tle?
Here is the difference-checker screenshot for above two submissions:
https://mirror.codeforces.com/e69a59/Annotation 2020-08-24 164710.png
/predownloaded/65/9c/659cd8e0ff375f261607e7375be81fa6b99d6cba.png