2 4 1 1 1 2 2 0 4 2
3 We can move the white pawn to $(4,0)$, $(4,1)$, and $(4,2)$, as follows: * $(0,2)\to (1,1)\to (2,1)\to (3,1)\to (4,2)$ * $(0,2)\to (1,1)\to (2,1)\to (3,1)\to (4,1)$ * $(0,2)\to (1,1)\to (2,0)\to (3,0)\to (4,0)$ On the other hand, we cannot move it to $(4,3)$ or $(4,4)$. Thus, we should print $3$.
1 1 1 1
0 We cannot move the white pawn from $(0,1)$.
{
"problem": {
"name": "White Pawn",
"description": {
"content": "Let $N$ be a positive integer. We have a $(2N+1)\\times (2N+1)$ grid where rows are numbered $0$ through $2N$ and columns are also numbered $0$ through $2N$. Let $(i,j)$ denote the square at Row $i$ an",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc203_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Let $N$ be a positive integer. We have a $(2N+1)\\times (2N+1)$ grid where rows are numbered $0$ through $2N$ and columns are also numbered $0$ through $2N$. Let $(i,j)$ denote the square at Row $i$ an...",
"is_translate": false,
"language": "English"
}
]
}