結果

問題 No.1131 Deviation Score
ユーザー ThetaTheta
提出日時 2022-10-20 16:31:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 357 bytes
コンパイル時間 1,037 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 15,640 KB
最終ジャッジ日時 2023-09-12 21:27:33
合計ジャッジ時間 3,978 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
9,748 KB
testcase_01 AC 18 ms
8,056 KB
testcase_02 AC 91 ms
14,372 KB
testcase_03 AC 50 ms
11,004 KB
testcase_04 AC 86 ms
13,992 KB
testcase_05 AC 41 ms
10,388 KB
testcase_06 AC 88 ms
14,204 KB
testcase_07 AC 51 ms
11,276 KB
testcase_08 AC 81 ms
13,656 KB
testcase_09 AC 39 ms
10,244 KB
testcase_10 AC 78 ms
13,528 KB
testcase_11 AC 82 ms
13,580 KB
testcase_12 AC 74 ms
12,864 KB
testcase_13 AC 89 ms
14,268 KB
testcase_14 AC 31 ms
9,496 KB
testcase_15 AC 30 ms
9,496 KB
testcase_16 AC 82 ms
13,716 KB
testcase_17 AC 42 ms
10,496 KB
testcase_18 AC 103 ms
15,640 KB
testcase_19 AC 16 ms
8,020 KB
testcase_20 AC 16 ms
8,080 KB
testcase_21 AC 16 ms
7,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import floor


def calc_rough_deviation_score(score: int, average: float) -> float:
    return 50 - (average - score) / 2


def main():
    N = int(input())
    x = list(map(int, input().split()))
    average = sum(x) / N
    for score in x:
        print(floor(calc_rough_deviation_score(score, average)))


if __name__ == "__main__":
    main()
0