Could anyone tell me the approach to solve the following math problem in CSES https://cses.fi/problemset/task/1082

2 Likes

Superb problem

Thanks !! Got it

1 Like