4 2 1 -1 3
8 There are three ways to make requests, as follows: * Choose $P_1 = 2, P_2 = 1, P_3 = 1, P_4 = 3$. In this case, at least three roads - for example, $(1,2),(1,3),(3,4)$ - are needed to meet the requests. * Choose $P_1 = 2, P_2 = 1, P_3 = 2, P_4 = 3$. In this case, at least three roads - for example, $(1,2),(1,3),(3,4)$ - are needed to meet the requests. * Choose $P_1 = 2, P_2 = 1, P_3 = 4, P_4 = 3$. In this case, at least two roads - for example, $(1,2),(3,4)$ - are needed to meet the requests. Note that it is not mandatory to connect Town $i$ and Town $P_i$ directly. The sum of the above numbers is $8$.
2 2 1
1 There may be just one fixed way to make requests.
10 2 6 9 -1 6 9 -1 -1 -1 -1
527841
{
"problem": {
"name": "Urban Planning",
"description": {
"content": "There are $N$ towns numbered $1, 2, \\cdots, N$. Some roads are planned to be built so that each of them connects two distinct towns bidirectionally. Currently, there are no roads connecting towns. In ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "nomura2020_d"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $N$ towns numbered $1, 2, \\cdots, N$.\nSome roads are planned to be built so that each of them connects two distinct towns bidirectionally. Currently, there are no roads connecting towns.\nIn ...",
"is_translate": false,
"language": "English"
}
]
}