Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

TLE but same code as Editorial

Revision en1, by ghee_khatam, 2025-08-26 21:48:17

Hi everyone,

I have submitted a solution to the recent Codeforces Round 1045 Div 2 problem B (which was Add 0 or K) and my solution looks

similar to the editorial solution 2 yet my solution is giving TLE and Editorial code is getting Accepted can anyone guide me.

Link to my submission : https://codeforces.me/contest/2134/submission/335714240

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ghee_khatam 2025-08-26 22:16:02 92
en1 English ghee_khatam 2025-08-26 21:48:17 384 Initial revision (published)