Getting "time limit exceeded" in Enormous Input Test.

c-plus-plus
largeintegers

#1

I need help to understand this problem: http://www.codechef.com/problems/INTEST

Well, I looked into the solutions but couldn’t understand much from it. I have no idea how to handle big numbers in C++.


#2

long can very well handle the required range…for that matter even int can…as the name of the ques depicts…this ques is to test your input output techniques…u are using cin/cout…which are slow…instead use scanf/printf or any other fast i/o techniques to reduce the time taken for ur code to complete execution in the given time limit…hope this helps…:slight_smile:

PS:- ur logic is correct just change i/o technique…:slight_smile:


#3

Oh! that’s it? Thank you