Why is it showing TLE for this program?

hey @prerit_goyal ,
can you try providing the same sample input once.
i guess the error is because you looping and conditional statements are not properly indented.

Just check once.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

even after some changes it is still showing TLE for the code!!! what’s wrong now??!!

can you please share your updated code.

the reply section is not taking the screenshot of the code here!!!

hey @prerit_goyal ,
so do one thing, copy paste your code in ide.codingblocks.com , save it and then share its link to me here.

it will easier for me debug it then

THank YOu

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.