結果

問題 No.1134 Deviation Score Ⅱ
ユーザー titiatitia
提出日時 2023-11-15 05:17:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 222 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 18,928 KB
最終ジャッジ日時 2023-11-15 05:18:02
合計ジャッジ時間 3,098 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,984 KB
testcase_01 AC 80 ms
16,708 KB
testcase_02 AC 65 ms
14,572 KB
testcase_03 AC 76 ms
16,060 KB
testcase_04 AC 49 ms
12,672 KB
testcase_05 AC 79 ms
16,676 KB
testcase_06 AC 42 ms
11,776 KB
testcase_07 AC 42 ms
11,392 KB
testcase_08 AC 72 ms
15,636 KB
testcase_09 AC 38 ms
11,136 KB
testcase_10 AC 31 ms
10,112 KB
testcase_11 AC 63 ms
14,592 KB
testcase_12 AC 62 ms
14,208 KB
testcase_13 AC 85 ms
17,536 KB
testcase_14 AC 64 ms
14,592 KB
testcase_15 AC 54 ms
13,120 KB
testcase_16 AC 41 ms
11,392 KB
testcase_17 AC 63 ms
14,336 KB
testcase_18 AC 65 ms
14,592 KB
testcase_19 AC 76 ms
16,064 KB
testcase_20 AC 56 ms
13,184 KB
testcase_21 AC 51 ms
16,980 KB
testcase_22 AC 44 ms
11,336 KB
testcase_23 AC 30 ms
9,984 KB
testcase_24 AC 31 ms
9,984 KB
testcase_25 AC 37 ms
10,880 KB
testcase_26 AC 89 ms
18,928 KB
testcase_27 AC 31 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

if X==ave:
    print(50)
else:
    S=0
    for a in A:
        S+=abs(a-ave)**2

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

    print(int(p+50))
0