5 6 7 5 1 9 3 8 4 9 2 10 1 0 3 0 3 30 5 100 1 100
6.000000000000000 7.500000000000000 6.333333333333333 5.400000000000000 13.333333333333334 13.333333333333334 100.000000000000000 Initially, $(a_1, a_2, a_3, a_4, a_5) = (5, 1, 9, 3, 8)$. The first query changes $a_4$ to $9$, making $(a_1, a_2, a_3, a_4, a_5) = (5, 1, 9, 9, 8)$. Here, assuming that your performance in contest $i$ is $a_i$, your rating will change as follows. * Initially, your rating is $0$. * After contest $1$, your rating will be $5 / 1 = 5$. * After contest $2$, your rating will be $(5 + 1) / 2 = 3$. * After contest $3$, your rating will be $(5 + 1 + 9) / 3 = 5$. * After contest $4$, your rating will be $(5 + 1 + 9 + 9) / 4 = 6$. * Your rating will no longer change, because your rating after contest $4$ is not less than $B$. Thus, your final rating after the contests is $6$, which should be printed in the first line.
{
"problem": {
"name": "Ex - Rating Estimator",
"description": {
"content": "You will participate in $N$ contests, numbered $1$ to $N$ in chronological order. A participant in each contest will be given a value called **performance** for that contest. Let $P_i$ be the perfor",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 3000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc292_h"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You will participate in $N$ contests, numbered $1$ to $N$ in chronological order. \nA participant in each contest will be given a value called **performance** for that contest. Let $P_i$ be the perfor...",
"is_translate": false,
"language": "English"
}
]
}