Problem D
Gini Stuðull
Languages
en
is

To calculate the coefficient for a group of people, the income of everyone in that group has to be known. If
Here
Input
The first line of the input contains one integer
Output
Output the Gini coefficient for the group. The output is
considered correct if the relative or absolute error from the
correct answer does not exceed
Scoring
Group |
Points |
Constraints |
1 |
50 |
|
2 |
50 |
|
Sample Input 1 | Sample Output 1 |
---|---|
5 100 100 100 100 100 |
0.00000000000000000 |
Sample Input 2 | Sample Output 2 |
---|---|
5 400 100 300 200 500 |
0.26666666666666666 |
Sample Input 3 | Sample Output 3 |
---|---|
10 1 1 1 1 10000 1 1 1 1 1 |
0.89910080927165548 |