I got WA in the final test in this problem. It failed to pass test case no 36. But I applied this case in the compiler of my pc and got the right output. Here is the submission.
u can use scanf("%I64d", &x). but if ur compiler is g++ in linux, you may have to declare long long instead of __int64, and the input and output should be "%lld", but dont forget to replace "%lld" by "%I64d" when u solve problems in this oj. that's one of the difference between two compilers.
I don't know, but 2349041 is your solution.
I replaced scanf() with cin>> and got AC. can't I use scanf() when i declare a __int64 type variable?
u can use scanf("%I64d", &x). but if ur compiler is g++ in linux, you may have to declare long long instead of __int64, and the input and output should be "%lld", but dont forget to replace "%lld" by "%I64d" when u solve problems in this oj. that's one of the difference between two compilers.