Can someone help me how to solve this question https://acm.timus.ru/problem.aspx?space=1&num=1918
Help needed for Timus 1918. Titan Ruins: Artful Manipulations
Can someone help me how to solve this question https://acm.timus.ru/problem.aspx?space=1&num=1918