{"problem":{"name":"Random Robots","description":{"content":"There are $K$ robots on a number line. The $i$\\-th robot $(1 \\leq i \\leq K)$ is initially at the coordinate $x_i$. The following procedure is going to take place exactly $N$ times. *   Each robot cho","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc216_h"},"statements":[{"statement_type":"Markdown","content":"There are $K$ robots on a number line. The $i$\\-th robot $(1 \\leq i \\leq K)$ is initially at the coordinate $x_i$.\nThe following procedure is going to take place exactly $N$ times.\n\n*   Each robot chooses to move or not with probability $\\frac{1}{2}$ each. The robots that move will **simultaneously** go the distance of $1$ in the positive direction, and the other robots will remain still.\n\nHere, all probabilistic decisions are independent.\nFind the probability that no two robots meet, that is, there are never two or more robots at the same coordinate at the same time throughout the procedures, modulo $998244353$ (see Notes).\n\n## Constraints\n\n*   $2 \\leq K \\leq 10$\n*   $1 \\leq N \\leq 1000$\n*   $0 \\leq x_1 \\lt x_2 \\lt \\cdots \\lt x_K \\leq 1000$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$K$ $N$\n$x_1$ $x_2$ $\\ldots$ $x_K$\n\n[samples]\n\n## Notes\n\nIt can be proved that the probability in question is always a rational number. Additionally, under the Constraints in this problem, when that value is represented as $\\frac{P}{Q}$ using two coprime integers $P$ and $Q$, it can be proved that there uniquely exists an integer $R$ such that $R \\times Q \\equiv P\\pmod{998244353}$ and $0 \\leq R \\lt 998244353$. Find this $R$.","is_translate":false,"language":"English"}],"meta":{"iden":"abc216_h","tags":[],"sample_group":[["2 2\n1 2","374341633\n\nThe probability in question is $\\frac{5}{8}$.\nWe have $374341633 \\times 8 \\equiv 5\\pmod{998244353}$, so you should print $374341633$."],["2 2\n10 100","1\n\nThe probability in question may be $1$."],["10 832\n73 160 221 340 447 574 720 742 782 970","553220346"]],"created_at":"2026-03-03 11:01:14"}}