Can someone suggest whats the problem with my logic for this problem. I believe it’s perfectly fine but don’t know where its lagging resulting in a wrong answer…
I am using logarithmic approach to solve this problem
Problem Link: https://www.codechef.com/AUG18B/problems/SHKNUM/
https://www.codechef.com/submit/complete/19731276
Regards,
@tushar2899