結果

問題 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
コンパイル時間 127 ms
コンパイル使用メモリ 10,516 KB
実行使用メモリ 16,520 KB
最終ジャッジ日時 2023-09-11 07:01:07
合計ジャッジ時間 2,353 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,824 KB
testcase_01 AC 53 ms
14,828 KB
testcase_02 AC 42 ms
12,848 KB
testcase_03 AC 49 ms
13,736 KB
testcase_04 AC 30 ms
10,576 KB
testcase_05 AC 54 ms
14,628 KB
testcase_06 AC 26 ms
9,892 KB
testcase_07 AC 23 ms
9,396 KB
testcase_08 AC 48 ms
13,564 KB
testcase_09 AC 23 ms
9,464 KB
testcase_10 AC 17 ms
7,924 KB
testcase_11 AC 41 ms
12,692 KB
testcase_12 AC 41 ms
12,540 KB
testcase_13 AC 58 ms
15,340 KB
testcase_14 AC 42 ms
12,592 KB
testcase_15 AC 34 ms
11,204 KB
testcase_16 AC 25 ms
9,584 KB
testcase_17 AC 41 ms
12,488 KB
testcase_18 AC 43 ms
12,780 KB
testcase_19 AC 51 ms
14,196 KB
testcase_20 AC 34 ms
11,288 KB
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 16 ms
7,848 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