5 2 3 1 5 1 1 1 1 1 4 0 0 0 0 4 8 1 6 4 5 3 8 7 12 15
Bob Alice Bob Bob Alice In the first test case, one possible game progression could be as follows. * Alice chooses $X=3$. This choice is valid because $3 > 3 \oplus 3(=0)$ for $i=1$. * $A=(3,1)$ becomes $A=(0,1)$. * Bob chooses $X=1$. This choice is valid because $1 > 1 \oplus 1(=0)$ for $i=2$. * $A=(0,1)$ becomes $A=(0,0)$. * Since Alice cannot choose any $X$, the game ends. In this case, Bob wins. In the second test case, one possible game progression could be as follows. * Alice chooses $X=1$. This choice is valid because $1 > 1 \oplus 1(=0)$ for $i=1$. * $A=(1,1,1,1,1)$ becomes $A=(0,0,0,0,0)$. * Since Bob cannot choose any $X$, the game ends. In this case, Alice wins.
{
"problem": {
"name": "Chmin XOR Game",
"description": {
"content": "Alice and Bob are playing a game using a length-$N$ sequence of non-negative integers $A=(A_1,A_2,\\dots,A_N)$. Starting with Alice, they take turns performing the following operation. The player who c",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc163_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Alice and Bob are playing a game using a length-$N$ sequence of non-negative integers $A=(A_1,A_2,\\dots,A_N)$.\nStarting with Alice, they take turns performing the following operation. The player who c...",
"is_translate": false,
"language": "English"
}
]
}