結果

問題 No.1134 Deviation Score Ⅱ
ユーザー miya145592
提出日時 2023-05-16 23:24:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 449 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 90,496 KB
最終ジャッジ日時 2024-12-14 20:49:38
合計ジャッジ時間 3,488 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
X = list(map(int, input().split()))
M = int(input())
a = sum(X)/N
v = []
for x in X:
    v.append((x-a)**2)
u = math.sqrt(sum(v)/N)
if u==0:
    print(50)
    exit()
t = abs(X[M-1]-a)*10/u
if X[M-1]>=a:
    print(int(50+t))
else:
    print(int(50-t))
0