2
10000 1
1000000000000000 10
o/p: 0 0
Why ?
According to my code o/p should be 10000 & 31 not 0,0.
Why i m getting o/p as 0,0 for sample test case 1?
@namandubey20 you just havent added parenthesis arnd m^k in line 15.after that too look at the constraints and use long long …also use fast i/0
The parathesis & m^k that u are telling at line 15 are already there.
I added changes but why I am getting 1 less than the answer always ?
Awaiting your reply.
OMG! What is this code & how to read this ?? 
@namandubey20
you can refer to this code too.
in the previous code we had defined abbreviations for various common functions to avoid rewriting them like
#define pb push_back ; wherever i need to write pushback i can write pb now…u can refer to the basic logic in the code in void go()