5 5 10 2 3 4 10 5 10 6 9 2 9 4 8 1 7 3 6 8 10 1 8 6 3 5 8 10 2 7
4
4
2
2
2
1
Initially, all cities are electrified.
* The $1$\-st event breaks Power Line $3$ that connects Point $5$ and Point $10$.
* Now City $5$ is no longer electrified, while $4$ cities remain electrified.
* The $2$\-nd event breaks Power Line $5$ that connects Point $2$ and Point $9$.
* The $3$\-rd event breaks Power Line $8$ that connects Point $3$ and Point $6$.
* Now Cities $2$ and $3$ are no longer electrified, while $2$ cities remain electrified.
* The $4$\-th event breaks Power Line $10$ that connects Point $1$ and Point $8$.
* The $5$\-th event breaks Power Line $2$ that connects Point $4$ and Point $10$.
* The $6$\-th event breaks Power Line $7$ that connects Point $1$ and Point $7$.
* Now City $1$ is no longer electrified, while $1$ city remains electrified.{
"problem": {
"name": "Blackout 2",
"description": {
"content": "A country has $N$ cities and $M$ power plants, which we collectively call places. The places are numbered $1,2,\\dots,N+M$, among which Places $1,2,\\dots,N$ are the cities and Places $N+1,N+2,\\dots,N",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 3000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc264_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "A country has $N$ cities and $M$ power plants, which we collectively call places. \nThe places are numbered $1,2,\\dots,N+M$, among which Places $1,2,\\dots,N$ are the cities and Places $N+1,N+2,\\dots,N...",
"is_translate": false,
"language": "English"
}
]
}