I was solving a practice problem on a site which states that
The purpose of this problem is to verify whether the method you are using to read input data is sufficiently fast to handle problems branded with the enormous Input/Output warning. You are expected to be able to process at least 2.5MB of input data per second at runtime.
Also how do I optimize input/output routines other than printf and scanf?