結果

問題 No.1131 Deviation Score
ユーザー Theta
提出日時 2022-10-20 16:31:52
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 357 bytes
コンパイル時間 114 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 16,736 KB
最終ジャッジ日時 2024-06-30 08:58:11
合計ジャッジ時間 3,843 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

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