Getting TLE, short code need help Thanks a lot

Revision en1, by cschill, 2022-02-03 18:36:44

Hello Guys, Please help me, I am getting TLE but the complexity of my program is around O(n*logn + n + n + n + T) where n and t both are 5e6. The time limit is 3 sec. I think it should work. Please help. https://codeforces.me/contest/546/submission/145049261

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English cschill 2022-02-03 18:36:44 314 Initial revision (published)