結果

問題 No.1134 Deviation Score Ⅱ
ユーザー 37zigen37zigen
提出日時 2020-08-03 16:42:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 10,740 KB
実行使用メモリ 16,568 KB
最終ジャッジ日時 2023-10-11 09:39:45
合計ジャッジ時間 2,237 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,968 KB
testcase_01 AC 53 ms
14,788 KB
testcase_02 AC 42 ms
12,840 KB
testcase_03 AC 48 ms
13,832 KB
testcase_04 AC 29 ms
10,748 KB
testcase_05 AC 52 ms
14,776 KB
testcase_06 AC 25 ms
10,076 KB
testcase_07 AC 22 ms
9,592 KB
testcase_08 AC 44 ms
13,688 KB
testcase_09 AC 20 ms
9,384 KB
testcase_10 AC 15 ms
8,096 KB
testcase_11 AC 40 ms
12,660 KB
testcase_12 AC 36 ms
12,616 KB
testcase_13 AC 54 ms
15,264 KB
testcase_14 AC 39 ms
12,852 KB
testcase_15 AC 32 ms
11,280 KB
testcase_16 AC 24 ms
9,632 KB
testcase_17 AC 37 ms
12,628 KB
testcase_18 AC 40 ms
13,012 KB
testcase_19 AC 46 ms
14,304 KB
testcase_20 AC 32 ms
11,556 KB
testcase_21 AC 47 ms
14,848 KB
testcase_22 AC 41 ms
11,604 KB
testcase_23 AC 15 ms
8,320 KB
testcase_24 AC 15 ms
8,328 KB
testcase_25 AC 19 ms
9,020 KB
testcase_26 AC 57 ms
16,568 KB
testcase_27 AC 15 ms
7,972 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=(x[M]-e)*10/a+50
print(int(ans))
0