TLE in ARC 165 task C

Revision en1, by MOOONI, 2023-09-18 16:56:13

Hello everyone. My solution gets TLE on this problem. I have no idea what I'm doing wrong because it's quite similar to the one mentioned in the editorial. Can you help, please?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English MOOONI 2023-09-18 16:57:32 14 Tiny change: 'g because it's quite si' -> 'g because my solution is quite si'
en1 English MOOONI 2023-09-18 16:56:13 314 Initial revision (published)