3 6 1 1 1 0 0 1 0 1 1 0 1 1 2 0 0 1 0 3 1 1 1 1 1 1
Yes No Yes In the first test case, $A$ is initially $(1,1,1,0,0,1)$. By choosing $(a,b,c,d)=(1,2,3,6)$ and performing the operation, $A$ becomes $(1,0,0,1,1,1)$. Next, by choosing $(a,b,c,d)=(1,2,3,4)$ and performing the operation, $A$ becomes $(0,1,1,0,1,1)$, which matches $B$. In the second test case, $A$ cannot be made to match $B$. In the third test case, $A$ already matches $B$ from the beginning.
{
"problem": {
"name": "Swap If Equal Sum",
"description": {
"content": "You are given length-$N$ integer sequences $A=(A_1,A_2,\\dots,A_N)$ and $B=(B_1,B_2,\\dots,B_N)$, each consisting of $0$ and $1$. Let $A[i,j]$ denote the consecutive subsequence of $A$ from the $i$\\-th ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc203_b"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given length-$N$ integer sequences $A=(A_1,A_2,\\dots,A_N)$ and $B=(B_1,B_2,\\dots,B_N)$, each consisting of $0$ and $1$. Let $A[i,j]$ denote the consecutive subsequence of $A$ from the $i$\\-th ...",
"is_translate": false,
"language": "English"
}
]
}