Hello Codeforces Community, I recently started reading CP-Algorithms site. While doing the practice of binary exponentiation questions, I am stuck at the question:- Chef and Riffles Link:- https://www.codechef.com/JAN221B/problems/RIFFLES
Any help regarding the code explanation, approach would be very helpful.
Thanks!!
Ishat Kumar Jha