Is this possible to solve this problem with math logic ? wIthout bruteforce , easy implementation ? problem link
How to solve Masha and geometric depression without bruteforce ?
Is this possible to solve this problem with math logic ? wIthout bruteforce , easy implementation ? problem link