問題一覧 > 通常問題

No.1131 Deviation Score

レベル : / AI推定難易度 : 118 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 245
作問者 : WrongAccept / テスター : null
お気に入りにしたユーザー ProblemId : 4748 / 自分の提出
問題文最終更新日: 2020-07-26 22:27:58
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original

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もしくは右上の雲マークをクリックしてアカウントを作成してください。