Kth root in binary search

even after using long long int, time limit is exceeding, what should is do?

Hey,
I think there might be some bug in your code. Can you share ide link of your code?