3 5 0 3 6 1 4 7 2
Yes 4 -1 6 -1 1 The sequence of operations above changes the sequence $A$ as follows. * Initially: $A = (5,0,3,6,1,4,7,2)$ * Operation $+$: $A = (6,1,4,7,2,5,0,3)$ * Operation $\oplus$ ($x = 6$):$A = (0,7,2,1,4,3,6,5)$ * Operation $+$: $A = (1,0,3,2,5,4,7,6)$ * Operation $\oplus$ ($x = 1$):$A = (0,1,2,3,4,5,6,7)$
3 2 5 4 3 6 1 0 7
No No sequence of operations achieves the objective.
3 0 1 2 3 4 5 6 7
Yes 0 Performing zero operations achieves the objective. Whether an empty line is printed or not does not affect the verdict.
{
"problem": {
"name": "Increment or Xor",
"description": {
"content": "You are given a positive integer $N$ and a sequence $A = (A_0, A_1, \\ldots, A_{2^N-1})$ of $2^N$ terms, where each $A_i$ is an integer between $0$ and $2^N-1$ (inclusive) and $A_i\\neq A_j$ holds if $i",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "agc057_c"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a positive integer $N$ and a sequence $A = (A_0, A_1, \\ldots, A_{2^N-1})$ of $2^N$ terms, where each $A_i$ is an integer between $0$ and $2^N-1$ (inclusive) and $A_i\\neq A_j$ holds if $i...",
"is_translate": false,
"language": "English"
}
]
}