Why I'm getting TLE on test 5?

Revision en2, by mahmoud13, 2023-11-17 13:07:30

I was trying to solve this problem 1851E - Nastya and Potions, and I submitted this code 233066590. It's the same logic of the editorial, that's what I think, but it's getting TLE. Can anyone tell me what is the wrong with my code so it's getting this TLE?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English mahmoud13 2023-11-17 13:07:30 0 (published)
en1 English mahmoud13 2023-11-17 12:59:31 288 Initial revision (saved to drafts)