7 10 10 1 1 1 1 1
50 For example, we can assign "holiday" to the $2$\-nd and $4$\-th day of week and "weekday" to the rest to achieve a productivity of $50$ per week: * the $1$\-st day of week ... $x=4$ and $y=1$, so its productivity is $A_1 = 10$. * the $2$\-nd day of week ... it is holiday, so its productivity is $0$. * the $3$\-st day of week ... $x=1$ and $y=1$, so its productivity is $A_1 = 10$. * the $4$\-th day of week ... it is holiday, so its productivity is $0$. * the $5$\-th day of week ... $x=1$ and $y=4$, so its productivity is $A_1 = 10$. * the $6$\-th day of week ... $x=2$ and $y=3$, so its productivity is $A_2 = 10$. * the $7$\-th day of week ... $x=3$ and $y=2$, so its productivity is $A_2 = 10$. It is impossible to make the productivity per week $51$ or greater.
10 200000000 500000000 1000000000 800000000 100000000 80000000 600000 900000000 1 20
5100000000
20 38 7719 21238 2437 8855 11797 8365 32285 10450 30612 5853 28100 1142 281 20537 15921 8945 26285 2997 14680
236980
{
"problem": {
"name": "Work or Rest",
"description": {
"content": "In the world where Takahashi lives, a week has $N$ days. Takahashi, the king of the Kingdom of AtCoder, assigns \"weekday\" or \"holiday\" to each day of week. The assignments should be the same for all w",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc285_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "In the world where Takahashi lives, a week has $N$ days.\nTakahashi, the king of the Kingdom of AtCoder, assigns \"weekday\" or \"holiday\" to each day of week. The assignments should be the same for all w...",
"is_translate": false,
"language": "English"
}
]
}