結果

問題 No.1134 Deviation Score Ⅱ
ユーザー titiatitia
提出日時 2023-11-15 05:16:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 172 bytes
コンパイル時間 347 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 18,788 KB
最終ジャッジ日時 2023-11-15 05:16:31
合計ジャッジ時間 3,837 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,984 KB
testcase_01 AC 77 ms
16,568 KB
testcase_02 AC 61 ms
14,436 KB
testcase_03 AC 72 ms
15,924 KB
testcase_04 AC 46 ms
12,544 KB
testcase_05 AC 77 ms
16,540 KB
testcase_06 AC 40 ms
11,648 KB
testcase_07 AC 37 ms
11,392 KB
testcase_08 AC 68 ms
15,488 KB
testcase_09 AC 36 ms
11,136 KB
testcase_10 AC 28 ms
10,112 KB
testcase_11 AC 60 ms
14,464 KB
testcase_12 AC 59 ms
14,080 KB
testcase_13 AC 82 ms
17,396 KB
testcase_14 AC 60 ms
14,464 KB
testcase_15 AC 53 ms
12,980 KB
testcase_16 AC 37 ms
11,392 KB
testcase_17 AC 59 ms
14,200 KB
testcase_18 AC 63 ms
14,464 KB
testcase_19 AC 72 ms
15,928 KB
testcase_20 AC 51 ms
13,056 KB
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 AC 33 ms
10,880 KB
testcase_26 AC 84 ms
18,788 KB
testcase_27 AC 27 ms
9,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
M=int(input())

X=A[M-1]

ave=sum(A)/N

S=0
for a in A:
    S+=abs(a-ave)**2

p=(X-ave)*10/((S/N)**(1/2))

print(int(p+50))
0