結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,000 KB
testcase_01 AC 54 ms
14,716 KB
testcase_02 AC 42 ms
12,704 KB
testcase_03 AC 49 ms
13,944 KB
testcase_04 AC 31 ms
10,680 KB
testcase_05 AC 54 ms
14,744 KB
testcase_06 AC 26 ms
10,004 KB
testcase_07 AC 24 ms
9,424 KB
testcase_08 AC 48 ms
13,736 KB
testcase_09 AC 23 ms
9,348 KB
testcase_10 AC 18 ms
7,908 KB
testcase_11 AC 41 ms
12,544 KB
testcase_12 AC 41 ms
12,484 KB
testcase_13 AC 58 ms
15,276 KB
testcase_14 AC 42 ms
12,720 KB
testcase_15 AC 33 ms
11,180 KB
testcase_16 AC 24 ms
9,540 KB
testcase_17 AC 41 ms
12,372 KB
testcase_18 AC 43 ms
12,896 KB
testcase_19 AC 50 ms
14,016 KB
testcase_20 AC 34 ms
11,476 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,984 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