結果

問題 No.1134 Deviation Score Ⅱ
ユーザー roaris
提出日時 2020-07-27 22:30:26
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 266 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 82,248 KB
実行使用メモリ 87,124 KB
最終ジャッジ日時 2024-06-28 21:12:10
合計ジャッジ時間 2,718 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 9 WA * 14 RE * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N = int(input())
x = list(map(int, input().split()))
M = int(input())-1
ave = sum(x)/N
var = sum((xi-ave)**2 for xi in x)/N
sigma = var**0.5
d = (x[M]-ave)*10/sigma

if x[M]>=ave:
    print(int(50+d))
else:
    print(int(50-d))
0