[Help Needed] Getting TLE on 2024D — Skipping

Revision en1, by Mr_Epsilon_Delta, 2024-10-25 00:50:00

Here's the problem: https://codeforces.net/contest/2024/problem/D Here's my solution: https://codeforces.net/contest/2024/submission/287835290

I think my code is logically correct, but I am unable to pass test 6 due to TLE.

Help me figure this out please.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Mr_Epsilon_Delta 2024-10-25 00:50:00 308 Initial revision (published)