10 5 3 5 8 9 5 8 2 9 6 6
7 5 3 2 2 Initially, $10$ cells are arranged in a row from left to right. * The first query paints cells $3,4,5$ black. After the operation, the cells painted white are cells $1,2,6,7,8,9,10$, which is $7$ cells. * The second query paints cells $8,9$ black. After the operation, the cells painted white are $1,2,6,7,10$, which is $5$ cells. * The third query paints cells $5,6,7,8$ black. After the operation, the cells painted white are $1,2,10$, which is $3$ cells. * The fourth query paints cells $2,3,\ldots,9$ black. After the operation, the cells painted white are $1,10$, which is $2$ cells. * The fifth query paints cell $6$ black. After the operation, the cells painted white are cells $1,10$, which is $2$ cells. Thus, output $7,5,3,2,2$ in this order on each line.
1000000000 1 1 500000000
500000000
{
"problem": {
"name": "Cover query",
"description": {
"content": "There are $N$ cells arranged in a row from left to right. The $i$\\-th cell from the left $(1\\leq i\\leq N)$ is called cell $i$. Initially, all cells are painted white. Process $Q$ queries in order.",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc435_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $N$ cells arranged in a row from left to right. \nThe $i$\\-th cell from the left $(1\\leq i\\leq N)$ is called cell $i$. \nInitially, all cells are painted white.\nProcess $Q$ queries in order....",
"is_translate": false,
"language": "English"
}
]
}