Can anyone explain why i am getting TLE in this problem?

Revision en1, by idonthatephy, 2022-02-19 14:03:17

1426C - Increase and Copy this is the problem and below is the link to my code- https://codeforces.com/problemset/submission/1426/146922562 can anyone explain why I am getting TLE in test case 3? is it because of the timecomplexity O(sqrt(n)logn) or something else?

Tags problem, help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English idonthatephy 2022-02-19 14:03:17 319 Initial revision (published)