3 3 1 3
7 For example, $b$ becomes $(2, 1, 2)$ by the following procedure. * Perform the first operation. $b$ becomes $(2, 0, 2)$. * Perform the first operation. $b$ becomes $(1, 0, 1)$. * Perform the second operation. $b$ becomes $(2, 1, 2)$. The following seven sequences can be the resulting $b$. * $(0, 0, 0)$ * $(1, 0, 1)$ * $(1, 1, 1)$ * $(2, 0, 2)$ * $(2, 1, 2)$ * $(2, 2, 2)$ * $(3, 1, 3)$
1 0
1 There are one sequence, $(0)$, that can be the resulting $b$.
5 1 3 5 7 9
36
10 766294629 440423913 59187619 725560240 585990756 965580535 623321125 550925213 122410708 549392044
666174028
{
"problem": {
"name": "Redistribution of Piles",
"description": {
"content": "There are $N$ plates numbered $1$ through $N$. Dish $i$ has $a_i$ stones on it. There is also an empty bag. You can perform the following two kinds of operations any number of times (possibly zero) ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc313_g"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $N$ plates numbered $1$ through $N$. Dish $i$ has $a_i$ stones on it. There is also an empty bag. \nYou can perform the following two kinds of operations any number of times (possibly zero) ...",
"is_translate": false,
"language": "English"
}
]
}