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/8e/d8/8ed8ec01b847f0fce2a4dd5e0d22b268a362de8c.png