結果

問題 No.1134 Deviation Score Ⅱ
ユーザー 37zigen37zigen
提出日時 2020-08-03 16:34:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 250 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 17,180 KB
最終ジャッジ日時 2023-10-11 09:29:41
合計ジャッジ時間 2,283 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,900 KB
testcase_01 AC 55 ms
14,804 KB
testcase_02 AC 41 ms
12,804 KB
testcase_03 AC 47 ms
13,836 KB
testcase_04 AC 28 ms
10,836 KB
testcase_05 AC 51 ms
14,864 KB
testcase_06 AC 25 ms
10,068 KB
testcase_07 AC 22 ms
9,600 KB
testcase_08 AC 45 ms
13,684 KB
testcase_09 AC 22 ms
9,440 KB
testcase_10 AC 15 ms
8,024 KB
testcase_11 AC 40 ms
12,600 KB
testcase_12 AC 37 ms
12,332 KB
testcase_13 AC 55 ms
15,640 KB
testcase_14 AC 39 ms
12,920 KB
testcase_15 AC 30 ms
11,360 KB
testcase_16 AC 23 ms
9,688 KB
testcase_17 AC 37 ms
12,556 KB
testcase_18 AC 40 ms
12,844 KB
testcase_19 AC 47 ms
14,128 KB
testcase_20 AC 31 ms
11,456 KB
testcase_21 AC 47 ms
14,744 KB
testcase_22 AC 40 ms
11,612 KB
testcase_23 AC 16 ms
8,324 KB
testcase_24 AC 15 ms
8,404 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 16 ms
7,884 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)
if a==0:
    print(50)
    exit()
ans=(e-x[M])*10/a
if ans>e:
    ans=50+ans
else:
    ans=50-ans
print(int(ans))
0