結果

問題 No.1134 Deviation Score Ⅱ
ユーザー akitsugu777akitsugu777
提出日時 2020-12-07 14:51:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 11,924 KB
実行使用メモリ 18,944 KB
最終ジャッジ日時 2023-10-17 16:30:34
合計ジャッジ時間 3,099 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,212 KB
testcase_01 AC 68 ms
16,640 KB
testcase_02 AC 57 ms
14,644 KB
testcase_03 AC 61 ms
15,900 KB
testcase_04 AC 43 ms
12,592 KB
testcase_05 AC 67 ms
16,612 KB
testcase_06 AC 38 ms
11,832 KB
testcase_07 AC 36 ms
11,324 KB
testcase_08 AC 61 ms
15,580 KB
testcase_09 AC 35 ms
11,324 KB
testcase_10 AC 29 ms
10,344 KB
testcase_11 AC 55 ms
14,648 KB
testcase_12 AC 52 ms
14,236 KB
testcase_13 AC 72 ms
17,408 KB
testcase_14 AC 54 ms
14,684 KB
testcase_15 AC 46 ms
13,128 KB
testcase_16 AC 37 ms
11,528 KB
testcase_17 AC 54 ms
14,396 KB
testcase_18 AC 56 ms
14,680 KB
testcase_19 AC 64 ms
16,012 KB
testcase_20 AC 47 ms
13,284 KB
testcase_21 AC 61 ms
16,568 KB
testcase_22 AC 54 ms
13,476 KB
testcase_23 AC 29 ms
10,160 KB
testcase_24 AC 29 ms
10,160 KB
testcase_25 AC 33 ms
11,096 KB
testcase_26 AC 72 ms
18,944 KB
testcase_27 AC 28 ms
10,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
X = list(map(int, input().split()))
M = int(input())

Ans = 0
A = sum(X) / N
X2 = [(i-A)**2 for i in X]
A2 = (sum(X2) / N)**0.5
if A2 == 0:
    Ans = 50
else:
    A3 = (abs(A-X[M-1])*10) / A2
    Ans = 50 + [-A3, A3][X[M-1] > A]

print(int(Ans))
0