Hello everyone, I was solving today this graph problem : 598D - Игорь в музее.
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: