2 1 5 3 3
3
There are three possible sets of robots remaining on the number line: ${1, 2}$, ${1}$, and ${}$.
These can be achieved as follows:
* If Takahashi activates nothing, the robots ${1, 2}$ will remain.
* If Takahashi activates Robot $1$, it will activate Robot $2$ while moving, after which there will be no robots on the number line. This state can also be reached by activating Robot $2$ and then Robot $1$.
* If Takahashi activates Robot $2$ and finishes doing the operation, the robot ${1}$ will remain.3 6 5 -1 10 3 3
5
There are five possible sets of robots remaining on the number line: ${1, 2, 3}$, ${1, 2}$, ${2}$, ${2, 3}$, and ${}$.4 7 10 -10 3 4 3 -4 3
16 None of the robots influences others.
20 -8 1 26 4 0 5 9 1 19 4 22 20 28 27 11 8 -3 20 -25 17 10 4 -18 27 24 28 -11 19 2 27 -2 18 -1 12 -24 29 31 29 29 7
110 Remember to print the count modulo $998244353$.
{
"problem": {
"name": "Removing Robots",
"description": {
"content": "There are $N$ robots numbered $1$ to $N$ placed on a number line. Robot $i$ is placed at coordinate $X_i$. When activated, it will travel the distance of $D_i$ in the positive direction, and then it w",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc158_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $N$ robots numbered $1$ to $N$ placed on a number line. Robot $i$ is placed at coordinate $X_i$. When activated, it will travel the distance of $D_i$ in the positive direction, and then it w...",
"is_translate": false,
"language": "English"
}
]
}