Number Game - ZCO 2011 P2

Hi, can anybody please help me to solve the problem ZCO 2011 P2.
Link here: Indian Computing Olympiad Archives 2011 - IARCS

Someone pleaseee helppp…

Please

Thanks

1 Like

This may help you : Optimal Strategy for a Game | DP-31 - GeeksforGeeks