8 2 3 3 6 5 9 45 58 39 94 36 54 74 80 61 95
Alice
Alice
Bob
Bob
Alice
Bob
Bob
Alice
In the first test case, the game could proceed as follows.
* Initially, both Alice and Bob have two cards: the card with $1$ and the card with $2$.
* Alice plays the card with $1$.
* The sum of the numbers on the cards played so far is $1$, which is not divisible by $3$, so Alice does not lose.
* Bob plays the card with $1$.
* The sum is now $2$, which is not divisible by $3$, so Bob does not lose.
* Alice plays the card with $2$.
* The sum is now $4$, which is not divisible by $3$, so Alice does not lose.
* Bob plays the card with $2$.
* The sum is now $6$, which is divisible by $3$, so Bob loses and Alice wins.
In the first test case, no matter how Bob plays, Alice can win.{
"problem": {
"name": "mod M Game 2",
"description": {
"content": "There are positive integers $N$ and $M$, where $N \\lt M$. Alice and Bob will play a game. Each player has $N$ cards with $1, 2, \\dots, N$ written on them, one for each number. Starting with Alice, t",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc185_a"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are positive integers $N$ and $M$, where $N \\lt M$. \nAlice and Bob will play a game. Each player has $N$ cards with $1, 2, \\dots, N$ written on them, one for each number. Starting with Alice, t...",
"is_translate": false,
"language": "English"
}
]
}