No.1131 Deviation Score
タグ : / 解いたユーザー数 245
作問者 :
WrongAccept
/ テスター :
null
Problem Statement
There are $N$ students in the class NaN-kun is in charge of.
A test was given, and the students' scores, out of 100 points, were {$x_1,x_2…x_N$}.
Find the approximate deviation score of each of the $N$ students, rounded down to an integer (discarding the fractional part).
The approximate deviation score $D_i$ of student $i$ is defined as
$D_i=50-$$\frac{A-x_i}{2}$, where $A$ is the average score of the $N$ students, including that student.
Input
$N$ $x_1\ x_2 ... x_N$
$1≦N≦10^5$
$0≦x_i≦100$
$N$,$x_i$ are integers.
Output
Output the approximate deviation scores of the $N$ students, rounded down to an integer (discarding the fractional part), on $N$ lines.
Sample 1
Input
5 10 40 50 30 90
Output
33 48 53 43 73
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。