I need help to solve this problem

Правка en1, от Whitemuha, 2026-04-28 11:01:47

I was trying to solve this problem and this is my code I thought it will pass but it gives TLE can anybody tell is it possible to optimize my code or my solution is completely wrong

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Whitemuha 2026-04-28 11:01:47 305 Initial revision (published)