結果

問題 No.1134 Deviation Score Ⅱ
ユーザー 37zigen37zigen
提出日時 2020-07-28 15:09:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 216 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 16,780 KB
最終ジャッジ日時 2023-09-11 07:01:13
合計ジャッジ時間 2,308 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,864 KB
testcase_01 AC 55 ms
14,884 KB
testcase_02 AC 42 ms
12,840 KB
testcase_03 AC 48 ms
13,860 KB
testcase_04 AC 30 ms
10,576 KB
testcase_05 AC 54 ms
14,732 KB
testcase_06 AC 26 ms
9,888 KB
testcase_07 AC 24 ms
9,420 KB
testcase_08 AC 47 ms
13,592 KB
testcase_09 AC 22 ms
9,324 KB
testcase_10 AC 17 ms
7,888 KB
testcase_11 AC 41 ms
12,656 KB
testcase_12 AC 40 ms
12,544 KB
testcase_13 AC 57 ms
15,400 KB
testcase_14 AC 42 ms
12,552 KB
testcase_15 AC 33 ms
11,412 KB
testcase_16 AC 24 ms
9,668 KB
testcase_17 AC 41 ms
12,412 KB
testcase_18 AC 42 ms
12,836 KB
testcase_19 AC 50 ms
14,192 KB
testcase_20 AC 35 ms
11,352 KB
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 17 ms
7,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N=int(input())
x=[int(x) for x in input().split()]
M=int(input())-1
e=sum(x)/N
y=[(v-e)**2 for v in x]
a=math.sqrt(sum(y)/N)
ans=(e-x[M])*10/a
if ans>e:
    ans=50+ans
else:
    ans=50-ans
print(int(ans))
0