My code was all correct but was showing TLE. Then I tried my code with this statement:
ios::sync_with_stdio(0);
And it passed all the cases. Can anyone tell how this code effects the efficiency?
My code was all correct but was showing TLE. Then I tried my code with this statement:
ios::sync_with_stdio(0);
And it passed all the cases. Can anyone tell how this code effects the efficiency?