結果

問題 No.1134 Deviation Score Ⅱ
ユーザー lloyzlloyz
提出日時 2022-07-06 00:27:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 643 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 16,576 KB
最終ジャッジ日時 2023-08-22 15:00:33
合計ジャッジ時間 3,442 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,896 KB
testcase_01 AC 61 ms
14,888 KB
testcase_02 AC 48 ms
12,872 KB
testcase_03 AC 54 ms
13,916 KB
testcase_04 AC 32 ms
10,600 KB
testcase_05 AC 60 ms
14,632 KB
testcase_06 AC 28 ms
9,916 KB
testcase_07 AC 24 ms
9,512 KB
testcase_08 AC 54 ms
13,668 KB
testcase_09 AC 24 ms
9,344 KB
testcase_10 AC 16 ms
7,908 KB
testcase_11 AC 46 ms
12,604 KB
testcase_12 AC 44 ms
12,408 KB
testcase_13 AC 64 ms
15,552 KB
testcase_14 AC 46 ms
12,724 KB
testcase_15 AC 36 ms
11,352 KB
testcase_16 AC 25 ms
9,708 KB
testcase_17 AC 45 ms
12,556 KB
testcase_18 AC 47 ms
12,832 KB
testcase_19 AC 57 ms
14,144 KB
testcase_20 AC 37 ms
11,412 KB
testcase_21 AC 54 ms
14,756 KB
testcase_22 AC 48 ms
9,532 KB
testcase_23 AC 16 ms
8,384 KB
testcase_24 AC 15 ms
8,248 KB
testcase_25 AC 21 ms
9,144 KB
testcase_26 AC 66 ms
16,576 KB
testcase_27 AC 16 ms
7,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt

n = int(input())
A = list(map(int, input().split()))
m = int(input())

m -= 1
mean = sum(A) / n
dif = 0
for i in range(n):
    dif += (A[i] - mean)**2
dif = sqrt(dif / n)
if dif == 0:
    print(50)
    exit()
print(int(50 + (A[m] - mean) * 10 / dif))
0