Time limit... with the code


showing tLE with the video logic

i have also used videos approach,
i got answer correct in 0.08 sec.

I just added the_martian() function and it got accepted!!!

sir please tell what basically this function does to optimise our code

ohh thats my username , its first two lines optimise cin and cout

like by how much … and should we use it in every code?

like when there are large input data set , such as questions with queries , then ust use teo lines;
ios_base:: sync_with_stdio(false);
cin.tie(NULL); cout.tie(NULL);
and your code time will become like original time / 5;

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.