3 5 2 6 5 7 5 5 10 10 10 10 10 5 1 10 100 1000 10000
3
0
1
For the first test case, below are examples of subsequences, their averages, and their scores.
* $x = (A_1) = (2)$: the average is $2$, and the score is $0$.
* $x = (A_3,A_5) = (5,5)$: the average is $5$, and the score is $0$.
* $x = (A_1,A_3,A_4,A_5) = (2,5,7,5)$: the average is $\frac{19}{4}$, and the score is $3$.
* $x = (A_1,A_2,A_3,A_4,A_5) = (2,6,5,7,5)$: the average is $5$, and the score is $2$.{
"problem": {
"name": "Greater Than Average",
"description": {
"content": "Define the **score** of a non-empty integer sequence $x = (x_1, \\ldots, x_n)$ as the number of elements of $x$ that are strictly greater than the average of $x$. That is, the score of $x$ is the count",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc197_b"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Define the **score** of a non-empty integer sequence $x = (x_1, \\ldots, x_n)$ as the number of elements of $x$ that are strictly greater than the average of $x$.\nThat is, the score of $x$ is the count...",
"is_translate": false,
"language": "English"
}
]
}