結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,868 KB
testcase_01 AC 54 ms
14,684 KB
testcase_02 AC 42 ms
12,816 KB
testcase_03 AC 49 ms
13,848 KB
testcase_04 AC 31 ms
10,644 KB
testcase_05 AC 55 ms
14,768 KB
testcase_06 AC 26 ms
10,032 KB
testcase_07 AC 24 ms
9,516 KB
testcase_08 AC 48 ms
13,620 KB
testcase_09 AC 22 ms
9,528 KB
testcase_10 AC 18 ms
7,932 KB
testcase_11 AC 42 ms
12,604 KB
testcase_12 AC 40 ms
12,420 KB
testcase_13 AC 58 ms
15,460 KB
testcase_14 AC 41 ms
12,872 KB
testcase_15 AC 33 ms
11,348 KB
testcase_16 AC 24 ms
9,740 KB
testcase_17 AC 40 ms
12,436 KB
testcase_18 AC 43 ms
12,976 KB
testcase_19 AC 51 ms
14,232 KB
testcase_20 AC 34 ms
11,472 KB
testcase_21 AC 49 ms
14,672 KB
testcase_22 AC 42 ms
11,620 KB
testcase_23 AC 16 ms
8,356 KB
testcase_24 AC 17 ms
8,376 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 16 ms
8,040 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