Https://ide.codingblocks.com/#/s/15062

solution link: https://ide.codingblocks.com/#/s/15062
ques link: https://hack.codingblocks.com/contests/c/452/274
please check why one o/p is not passed…

Your code is not working properly for this test case
1
1000000000000 6
And you are not supposed to use power function , you are given this qn to use binary search

sir but this input works fine…

Nope ! Ur code is giving output 99 instead of 100