Time limit exceeded in Enormous Input Test Problem?

I have started solving Beginner problems. In my second problem, I am getting this error. I googled as you suggested, but didn’t get an exact answer.

You need to use Fast I/O for that problem.
Here’s an awesome article summing up the time taken by various I/O and their improvisations.

1 Like

Please do not duplicate topics in codechef discussion forum.

This question was already asked before and solved : Link

More similar questions can be found here : Link

Please do some research before asking questions next time!!.

2 Likes

Thanks for helping guys.

Just for quick help,

Use scanf() of course

And you must process the data right after every time you take an input. Remember, you don’t need an array for this.

//