結果

問題 No.1134 Deviation Score Ⅱ
ユーザー lemon
提出日時 2021-05-08 14:17:58
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 422 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 17,952 KB
最終ジャッジ日時 2024-09-16 18:43:29
合計ジャッジ時間 2,996 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 23 RE * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, math
 
sys.setrecursionlimit(10 ** 6)
stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()
nsa = lambda: list(stdin.readline().split())
mod = 10 * 7 + 7

n = ni()
X = na()
m = ni()

ave = sum(X) / n
s2 = 0
for x in X:
    s2 += (abs(ave - x)) ** 2

s2 /= n
s = math.sqrt(s2)
ans = 50 + (X[m - 1] - ave) * 10 / s 

print(int(ans))
0