結果

問題 No.1134 Deviation Score Ⅱ
ユーザー lemonlemon
提出日時 2021-05-08 14:17:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 422 bytes
コンパイル時間 224 ms
コンパイル使用メモリ 10,856 KB
実行使用メモリ 16,460 KB
最終ジャッジ日時 2023-10-15 01:12:01
合計ジャッジ時間 2,565 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,884 KB
testcase_01 AC 62 ms
14,668 KB
testcase_02 AC 48 ms
12,892 KB
testcase_03 AC 54 ms
13,796 KB
testcase_04 AC 34 ms
10,952 KB
testcase_05 AC 61 ms
14,748 KB
testcase_06 AC 29 ms
10,004 KB
testcase_07 AC 26 ms
9,596 KB
testcase_08 AC 55 ms
13,744 KB
testcase_09 AC 24 ms
9,276 KB
testcase_10 AC 17 ms
7,908 KB
testcase_11 AC 46 ms
12,548 KB
testcase_12 AC 45 ms
12,368 KB
testcase_13 AC 65 ms
15,856 KB
testcase_14 AC 47 ms
12,688 KB
testcase_15 AC 37 ms
11,272 KB
testcase_16 AC 26 ms
9,668 KB
testcase_17 AC 46 ms
12,588 KB
testcase_18 AC 47 ms
12,832 KB
testcase_19 AC 57 ms
14,272 KB
testcase_20 AC 38 ms
11,488 KB
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 AC 22 ms
9,104 KB
testcase_26 AC 68 ms
16,460 KB
testcase_27 AC 16 ms
7,904 KB
権限があれば一括ダウンロードができます

ソースコード

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