3 3 2 5 5 1 2 2 5 3 5
11
The optimal distribution of snacks is as follows.
* Child $1$ gets $1$, $1$, $1$ piece of Snacks $1$, $2$, $3$, respectively.
* Child $2$ gets $0$, $2$, $1$ piece(s) of Snacks $1$, $2$, $3$, respectively.
* Child $3$ gets $1$, $2$, $2$ piece(s) of Snacks $1$, $2$, $3$, respectively.10 6 3 54 62 64 25 89 1 47 77 4 1 17 10 29 95 17 32 40 90 27 50 9
211
{
"problem": {
"name": "Snack",
"description": {
"content": "There are $N$ kinds of snacks numbered $1$ through $N$. We have $A_i$ pieces of Snack $i$. There are $M$ children numbered $1$ through $M$. We will distribute the pieces of snacks to these children. H",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc125_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $N$ kinds of snacks numbered $1$ through $N$. We have $A_i$ pieces of Snack $i$.\nThere are $M$ children numbered $1$ through $M$. We will distribute the pieces of snacks to these children. H...",
"is_translate": false,
"language": "English"
}
]
}