Why my code is giving TLE???

Revision en1, by zeddie, 2020-10-22 19:41:57

I was solving last question (1433G - Reducing Delivery Cost) or last Div3 round, and I got TLE at test case 3

Here is a link to TLE solution by me : link

Here is link to ACCEPTED solution by icecuber : link

I even followed his code, so as to make different changes and make our code similar, but still all I have is TLE. Please HELP!!

Tags #tle, #help, #graph

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English zeddie 2020-10-23 07:52:23 2
en3 English zeddie 2020-10-22 19:43:18 14
en2 English zeddie 2020-10-22 19:42:31 3
en1 English zeddie 2020-10-22 19:41:57 499 Initial revision (published)