Can anyone provide some hints to this problem? Although N <= 10^18 but there is some pattern which I am not able to detect.
Here's the c++11 solution for beginners like me
#include <iostream>#include <string>
How to check the solution whether it is correct or not? Any link to debugger
why are not there any header files...??
and on #include??
How did you solve this one @keshav ?