Why it gives TLE..my code is almost similar like in video

my code gives Time Limit Exceeded .

hello @t.prateek98

pls share ur code using cb ide

there is no any option for TA

@t.prateek98

paste ur code here-> https://ide.codingblocks.com/

and then press ctrl + s and then save
a link will be generated in ur search tab .
share that link with me

code.cpp ----------------------------

bro follow this.
a link will be generated in ur search bar something like
this > https://ide.codingblocks.com/s/372371
share that link with me

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.