結果

問題 No.1134 Deviation Score Ⅱ
ユーザー ohana
提出日時 2023-11-06 11:46:07
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 301 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 82,456 KB
実行使用メモリ 88,076 KB
最終ジャッジ日時 2024-09-25 23:01:36
合計ジャッジ時間 2,905 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 23 RE * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = int(input())
A = list(map(int, input().split()))
m = int(input())

ave = sum(A) / n

q1 = [((a - ave) ** 2) for a in A]
q2 = math.sqrt(sum(q1) / n)
q3 = abs(A[m - 1] - ave) * 10 / q2
if q2 == 0:
    print(50)
elif A[m - 1] > ave:
    print(int(50 + q3))
else:
    print(int(50 - q3))
0