3 2 5 3 4 1 1 2
2 3 Before sealing the $2$\-nd box, Takahashi will do the following: * Prepare an empty box. * Pack the $1$\-st potato into the box. Now, the total weight of potatoes in the box is $3$. * Pack the $2$\-nd potato into the box. Now, the total weight of potatoes in the box is $3 + 4 = 7$, which is not less than $X = 5$, so seal this box. * Prepare a new empty box. * Pack the $3$\-rd potato into the box. Now, the total weight of potatoes in the box is $1$. * Pack the $4$\-th potato into the box. Now, the total weight of potatoes in the box is $1 + 3 = 4$. * Pack the $5$\-th potato into the box. Now, the total weight of potatoes in the box is $1 + 3 + 4 = 8$, which is not less than $X = 5$, so seal this box. The $1$\-st box sealed contains $2$ potatoes, and the $2$\-nd box sealed contains $3$ potatoes.
10 5 20 5 8 5 9 8 7 4 4 8 2 1 1000 1000000 1000000000 1000000000000
4 5 5 5 5
{
"problem": {
"name": "Packing Potatoes",
"description": {
"content": "$10^{100}$ potatoes are coming from a conveyor belt one by one. The weights of the potatoes are described by a sequence $W = (W_0, \\dots, W_{N-1})$ of length $N$: the weight of the $i$\\-th potato comi",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc258_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "$10^{100}$ potatoes are coming from a conveyor belt one by one. The weights of the potatoes are described by a sequence $W = (W_0, \\dots, W_{N-1})$ of length $N$: the weight of the $i$\\-th potato comi...",
"is_translate": false,
"language": "English"
}
]
}