Kindly help with the kth root problem

Link to code:

hey @kunal9724kg, your code is giving wrong answer for
input
7
1000000000000 4
1000000000000 6
1000000000000 2
1000000000000 31
1000000000000 10
1000000000000 100
1000000000000 7
your output
625061280618
500007629568
712602252916
500000000000
500000000000
500000000000
500000000000
correct output
1000
100
1000000
2
15
1
51

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.