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:
Thanks,
spookywooky for the documentation.
Wild_Hamster for such a great way to help.
mallick630 for making it easy at last by amazing explanation.