Codeforces and Polygon may be unavailable from December 6, 19:00 (UTC) to December 6, 21:00 (UTC) due to technical maintenance. ×

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://mirror.codeforces.com/contest/546/submission/145049261

History

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