I am getting correct answer spoj but here in hackerblocks i am getting WA
WA in test case 2,3,4,5
Why I am still failing some test cases
Hey @jainpawan21
Your code is failing due to range issues of C++ long long type. Try to submit with python once. SPOJ unfortunately accepted wrong answers where range issues were occuring.
Specifically try case : 64, 30
Correct ans - 759510004936100355
Your ans - 310981744965266872
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.