I need help to solve this problem

Revision en1, by 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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Whitemuha 2026-04-28 11:01:47 305 Initial revision (published)