Alice and Bob play a game, with Alice taking the first turn.
Initially, an integer n is given. On each player’s turn, that player performs the following steps:
Chooses an integer x such that x n and n x
Replaces the current number n with n x.
If a player cannot make a move, they lose the game.
Return true if Alice wins the game assuming both players play optimally, and false otherwise.
Constraints:
n
Alice and Bob play a game, with Alice taking the first turn.
Initially, an integer n is given. On each player’s turn, that player performs the following steps:
Chooses an integer x such that x n and n x
Replaces the current number n with n x.
If a player cannot make a move, they lose the game.
Return true if Alice wins the game assuming both players play optimally, and false otherwise.
Constraints:
n