結果

問題 No.1134 Deviation Score Ⅱ
ユーザー brthyyjpbrthyyjp
提出日時 2020-10-17 09:06:43
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 81,408 KB
最終ジャッジ日時 2024-07-21 01:49:56
合計ジャッジ時間 3,491 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 13 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
X = list(map(int, input().split()))
m = int(input())
m -= 1

e = sum(X)/n
import math
t = 0
for x in X:
    t += (x-e)**2
t /= n
t = math.sqrt(t)
if abs(t) <= 10**(-6):
    print(50)
    exit()

d = (X[m]-e)*10
d /= t
if X[m] > e:
    print(int(50+d))
else:
    print(int(50-d))
0