TLE FOR Codeforces Round #722 (Div. 2) PROBLEM C

Revision en1, by kartik_singh29, 2021-05-24 23:17:36

Hi , I am unable to understand why my solution gives TLE on test case 4 .

Link to my solution — https://codeforces.me/contest/1529/submission/117265714

It would helpful if someone could point out the flaw in the solution . Thanks in advance !!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English kartik_singh29 2021-05-24 23:17:36 309 Initial revision (published)