Segementation Fault->TLE?

Revision en7, by raja_n, 2020-08-24 14:19:44

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?

90809524

90816112

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

Tags #graph, c++ compilers, #tle, #runtime

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en13 English raja_n 2020-12-03 12:02:38 77
en12 English 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 English raja_n 2020-08-24 16:22:48 39 Tiny change: 'ca7a9.png)' -> 'ca7a9.png)\n\n**UPD:**Why I am getting downvotes?'
en10 English raja_n 2020-08-24 14:25:08 77
en9 English raja_n 2020-08-24 14:22:40 130
en8 English raja_n 2020-08-24 14:20:58 70
en7 English raja_n 2020-08-24 14:19:44 62
en6 English raja_n 2020-08-24 14:18:53 131
en5 English raja_n 2020-08-24 14:17:44 2 Tiny change: 'issions:\n' -> 'issions:\n\n'
en4 English raja_n 2020-08-24 14:17:08 74
en3 English raja_n 2020-08-24 13:46:14 6
en2 English raja_n 2020-08-24 13:45:35 12
en1 English raja_n 2020-08-24 13:45:07 380 Initial revision (published)