optimizing c and python codes by using Faster IO.

, , ,

I am getting time limit exceed due to slower IO in python and c both.
can somebody provide me some tips and tricks for faster IO in python and c.

This has already been discussed extensively. I think this discussion on Fast I/O will give you both the explanation and code required : link.

Here are some other useful discussion forum links L 1 L 2