3 1 2 3 6 7 4
6 The figure below illustrates the positions of the towns (along with the coordinates of the four corners).  If Snuke learns the six spells below, he can get from Town $i$ to Town $j$ by using one of the spells once for every pair $(i,j)$ $(i \neq j)$, achieving his objective. * $(2, 4)$ * $(-2, -4)$ * $(4, -2)$ * $(-4, 2)$ * $(-6, -2)$ * $(6, 2)$ Another option is to learn the six spells below. In this case, he can get from Town $i$ to Town $j$ by using one of the spells twice for every pair $(i,j)$ $(i \neq j)$, achieving his objective. * $(1, 2)$ * $(-1, -2)$ * $(2, -1)$ * $(-2, 1)$ * $(-3, -1)$ * $(3, 1)$ There is no combination of spells that consists of less than six spells and achieve the objective, so we should print $6$.
3 1 2 2 2 4 2
2 The optimal choice is to learn the two spells below: * $(1, 0)$ * $(-1, 0)$
4 0 0 0 1000000000 1000000000 0 1000000000 1000000000
8
{
"problem": {
"name": "Teleportation",
"description": {
"content": "The Republic of AtCoder lies on a Cartesian coordinate plane. It has $N$ towns, numbered $1,2,\\dots,N$. Town $i$ is at $(x_i, y_i)$, and no two different towns are at the same coordinates. There are",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc226_d"
},
"statements": [
{
"statement_type": "Markdown",
"content": "The Republic of AtCoder lies on a Cartesian coordinate plane. \nIt has $N$ towns, numbered $1,2,\\dots,N$. Town $i$ is at $(x_i, y_i)$, and no two different towns are at the same coordinates.\nThere are...",
"is_translate": false,
"language": "English"
}
]
}