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++.
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++.
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…
PS:- ur logic is correct just change i/o technique…
Oh! that’s it? Thank you