Can you please tell me how can i remove tle from my code.
this is the link
How to remove tle
Hi @parmara8182
You can use Fast I/O as constraint is larger on n. It will solve the problem of tle;
Add this line as first line inside main -> ios::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
Hope it Helps.
Thanks!!! But please can you tell me what this line does?
Actually,by default cin/cout wastes time synchronizing with c++ library’s stdio buffers. Hence to avoid that. Further in depth is not required at this level.