Why does using logarithmic approach give me TLE?
Submission Problem
CF Edu Round 195 Solution Discussion