Circle Game

Ashish and Utkarsh play a game on the coordinate plane. A token starts at (0, 0). On every move, the current player must increase exactly one coordinate by k, leaving the other coordinate unchanged. The new point must remain inside or on the circle centered at the origin with radius d, so it must satisfy x^2 + y^2 <= d^2. The player who cannot make a legal move loses. Both players play optimally. Return true if the first player Ashish wins, and false otherwise.

This is Codeforces Round 685 problem 1451D, Circle Game.

Examples
Input: [2,1]
Output: false
Hints
Related Problems

Circle Game

Ashish and Utkarsh play a game on the coordinate plane. A token starts at `(0, 0)`. On every move, the current player must increase exactly one coordinate by `k`, leaving the other coordinate unchanged. The new point must remain inside or on the circle centered at the origin with radius `d`, so it must satisfy `x^2 + y^2 <= d^2`. The player who cannot make a legal move loses. Both players play optimally. Return `true` if the first player Ashish wins, and `false` otherwise.