Getting "time limit exceeded" in Enormous Input Test.

I need help to understand this problem: INTEST Problem - CodeChef

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

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:

1 Like

Oh! that’s it? Thank you