Can anyone help why i am getting tle for Edu Round 169 D??

Revision en3, by prb09, 2024-08-16 13:00:21

`can anyone tell why my second code gives tle, while first gets accepted?? Problem link : https://codeforces.net/contest/2004/problem/D

Correct Code
TLE Code

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English prb09 2024-08-16 13:00:21 2
en2 English prb09 2024-08-16 12:58:48 514
en1 English prb09 2024-08-16 12:54:50 4276 Initial revision (published)