結果

問題 No.1134 Deviation Score Ⅱ
ユーザー roaris
提出日時 2020-07-29 09:00:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 82,496 KB
実行使用メモリ 84,172 KB
最終ジャッジ日時 2024-06-28 21:24:32
合計ジャッジ時間 2,156 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N = int(input())
x = list(map(int, input().split()))
M = int(input())-1

if x==[x[0]]*N:
    print(50)
    exit()
    
ave = sum(x)/N
var = sum((xi-ave)**2 for xi in x)/N
sigma = var**0.5
d = (x[M]-ave)*10/sigma
print(int(50+d))
0