Game on Mars

In the year 2020, Alice and Bob will land on Mars just to play a game that will be broadcasted live …

Click here to read the complete problem statement.

If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

x, y <= 1e9 actually.