結果

問題 No.1134 Deviation Score Ⅱ
ユーザー first_vilfirst_vil
提出日時 2020-07-29 09:21:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 244 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 16,972 KB
最終ジャッジ日時 2023-09-11 07:09:38
合計ジャッジ時間 2,469 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,860 KB
testcase_01 AC 57 ms
14,764 KB
testcase_02 AC 42 ms
12,804 KB
testcase_03 AC 48 ms
13,912 KB
testcase_04 AC 30 ms
10,576 KB
testcase_05 AC 55 ms
14,592 KB
testcase_06 AC 26 ms
10,040 KB
testcase_07 AC 24 ms
9,456 KB
testcase_08 AC 47 ms
13,780 KB
testcase_09 AC 22 ms
9,356 KB
testcase_10 AC 17 ms
7,908 KB
testcase_11 AC 42 ms
12,532 KB
testcase_12 AC 40 ms
12,372 KB
testcase_13 AC 57 ms
15,472 KB
testcase_14 AC 41 ms
12,688 KB
testcase_15 AC 33 ms
11,252 KB
testcase_16 AC 24 ms
9,548 KB
testcase_17 AC 41 ms
12,632 KB
testcase_18 AC 42 ms
12,812 KB
testcase_19 AC 49 ms
14,180 KB
testcase_20 AC 34 ms
11,308 KB
testcase_21 AC 49 ms
14,588 KB
testcase_22 AC 42 ms
11,692 KB
testcase_23 AC 17 ms
7,828 KB
testcase_24 AC 16 ms
7,924 KB
testcase_25 AC 21 ms
9,128 KB
testcase_26 AC 60 ms
16,972 KB
testcase_27 AC 17 ms
7,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt
n=int(input())
x=list(map(int,input().split()))
m=int(input())-1
s=sum(x)/n
a=[pow(s-x[i],2) for i in range(n)]
t=sqrt(sum(a)/n)
print(int((x[m]-s)*10/t+50) if 0<t else 50)
0