Sir/Ma’am
i am getting TLE in case 2 can you please have a look at my code
Sir/Ma’am
i am getting TLE in case 2 can you please have a look at my code
you are getting tle because the input size is very large and it is taking time to take input please add
ios_base::sync_with_stdio(false); cin.tie(NULL);
In the beginning of your code
Corrected code
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.