3 3
7 7 4 7 7 * For $i=2$, the combinations $(1,2,2),(1,2,3),(1,3,3),(2,2,2),(2,2,3),(2,3,3),(3,3,3)$ satisfy the condition, so the answer is $7$. * For $i=3$, the combinations $(1,1,1),(1,1,3),(1,3,3),(2,2,2),(2,2,3),(2,3,3),(3,3,3)$ satisfy the condition, so the answer is $7$. * For $i=4$, the combinations $(1,1,1),(1,1,2),(2,3,3),(3,3,3)$ satisfy the condition, so the answer is $4$.
4 5
36 36 20 20 20 36 36
6 1000
149393349 149393349 668669001 668669001 4000002 4000002 4000002 668669001 668669001 149393349 149393349
{
"problem": {
"name": "Stop. Otherwise...",
"description": {
"content": "Takahashi throws $N$ dice, each having $K$ sides with all integers from $1$ to $K$. The dice are NOT pairwise distinguishable. For each $i=2,3,...,2K$, find the following value modulo $998244353$: * ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc102_c"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Takahashi throws $N$ dice, each having $K$ sides with all integers from $1$ to $K$. The dice are NOT pairwise distinguishable. For each $i=2,3,...,2K$, find the following value modulo $998244353$:\n\n* ...",
"is_translate": false,
"language": "English"
}
]
}