Why I'm getting TLE on test 5?

Правка en1, от mahmoud13, 2023-11-17 12:59:31

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?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский mahmoud13 2023-11-17 13:07:30 0 (published)
en1 Английский mahmoud13 2023-11-17 12:59:31 288 Initial revision (saved to drafts)