3 2 1 0 0 2 0 0 2 1 0 0 1
2 The optimal moves are as follows. * Move the first blue stone to $(2,0)$, for the cost of $|1-2|+|0-0|=1$. * Move the second blue stone to $(0,2)$, for the cost of $|0-0|+|1-2|=1$.
3 2 2 0 0 2 0 0 2 1 0 0 1
6 The optimal moves are as follows. * Move the first blue stone to $(2,2)$, for the cost of $|1-2|+|0-2|=3$. * Move the second blue stone to $(2,2)$, for the cost of $|0-2|+|1-2|=3$.
10 10 3 985971569 9592031 934345597 151698665 212173157 492617927 623299445 288193327 381549360 462770084 681791249 242910920 569404932 353061961 357882677 463919940 110389433 533715995 9639432 700209424 771167518 75925290 439954587 566974581 738467799 122646638 267815107 900808287 886340750 70087431 434010239 822484872 388269208 879859813 393002209 874330449 154134229 924857472 667626345 460737380
1165266772
{
"problem": {
"name": "Domination",
"description": {
"content": "There are $N$ red stones and $M$ blue stones on a two-dimensional plane. The $i$\\-th red stone is at coordinates $(RX_i,RY_i)$, and the $j$\\-th blue stone is at $(BX_j,BY_j)$. There may be multiple st",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 7000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc122_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $N$ red stones and $M$ blue stones on a two-dimensional plane. The $i$\\-th red stone is at coordinates $(RX_i,RY_i)$, and the $j$\\-th blue stone is at $(BX_j,BY_j)$. There may be multiple st...",
"is_translate": false,
"language": "English"
}
]
}