Segementation Fault->TLE?

Правка en10, от raja_n, 2020-08-24 14:25:08

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?

90809524

90816112

Here is the difference-checker screenshot for above two submissions:

Теги #graph, c++ compilers, #tle, #runtime

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en13 Английский raja_n 2020-12-03 12:02:38 77
en12 Английский raja_n 2020-08-24 18:18:01 284 Tiny change: 'votes?<br>\n**UPD2:**\n**Thanks' -> 'votes?<br><br>\n**UPD2:**<br>\n**Thanks'
en11 Английский raja_n 2020-08-24 16:22:48 39 Tiny change: 'ca7a9.png)' -> 'ca7a9.png)\n\n**UPD:**Why I am getting downvotes?'
en10 Английский raja_n 2020-08-24 14:25:08 77
en9 Английский raja_n 2020-08-24 14:22:40 130
en8 Английский raja_n 2020-08-24 14:20:58 70
en7 Английский raja_n 2020-08-24 14:19:44 62
en6 Английский raja_n 2020-08-24 14:18:53 131
en5 Английский raja_n 2020-08-24 14:17:44 2 Tiny change: 'issions:\n' -> 'issions:\n\n'
en4 Английский raja_n 2020-08-24 14:17:08 74
en3 Английский raja_n 2020-08-24 13:46:14 6
en2 Английский raja_n 2020-08-24 13:45:35 12
en1 Английский raja_n 2020-08-24 13:45:07 380 Initial revision (published)