3 6 2 2
8 The actions are performed as follows: * $T$ becomes $1$. Attack the 1st enemy, and its health becomes $6-1=5$. * $T$ becomes $2$. Attack the 1st enemy, and its health becomes $5-1=4$. * $T$ becomes $3$. Attack the 1st enemy, and its health becomes $4-3=1$. * $T$ becomes $4$. Attack the 1st enemy, and its health becomes $1-1=0$. * $T$ becomes $5$. Attack the 2nd enemy, and its health becomes $2-1=1$. * $T$ becomes $6$. Attack the 2nd enemy, and its health becomes $1-3=-2$. * $T$ becomes $7$. Attack the 3rd enemy, and its health becomes $2-1=1$. * $T$ becomes $8$. Attack the 3rd enemy, and its health becomes $1-1=0$.
9 1 12 123 1234 12345 123456 1234567 12345678 123456789
82304529
5 1000000000 1000000000 1000000000 1000000000 1000000000
3000000000 Beware of integer overflow.
{
"problem": {
"name": "Triple Attack",
"description": {
"content": "You are playing a game. There are $N$ enemies lined up in a row, and the $i$\\-th enemy from the front has a health of $H_i$. You will repeat the following action until the healths of all enemies becom",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc368_c"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are playing a game.\nThere are $N$ enemies lined up in a row, and the $i$\\-th enemy from the front has a health of $H_i$.\nYou will repeat the following action until the healths of all enemies becom...",
"is_translate": false,
"language": "English"
}
]
}