結果

問題 No.1134 Deviation Score Ⅱ
ユーザー 炭酸水炭酸水
提出日時 2022-05-14 03:28:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 648 ms
コンパイル使用メモリ 10,580 KB
実行使用メモリ 16,860 KB
最終ジャッジ日時 2023-09-29 15:06:15
合計ジャッジ時間 3,122 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,744 KB
testcase_01 AC 67 ms
14,620 KB
testcase_02 AC 50 ms
12,640 KB
testcase_03 AC 58 ms
13,900 KB
testcase_04 AC 33 ms
10,536 KB
testcase_05 AC 63 ms
14,564 KB
testcase_06 AC 27 ms
9,772 KB
testcase_07 AC 24 ms
9,376 KB
testcase_08 AC 56 ms
13,544 KB
testcase_09 AC 22 ms
9,348 KB
testcase_10 AC 15 ms
7,920 KB
testcase_11 AC 47 ms
12,480 KB
testcase_12 AC 46 ms
12,160 KB
testcase_13 AC 68 ms
15,368 KB
testcase_14 AC 47 ms
12,504 KB
testcase_15 AC 38 ms
11,144 KB
testcase_16 AC 25 ms
9,416 KB
testcase_17 AC 47 ms
12,392 KB
testcase_18 AC 49 ms
12,644 KB
testcase_19 AC 61 ms
14,024 KB
testcase_20 AC 39 ms
11,284 KB
testcase_21 AC 59 ms
14,488 KB
testcase_22 AC 49 ms
9,280 KB
testcase_23 AC 15 ms
7,744 KB
testcase_24 AC 15 ms
7,780 KB
testcase_25 AC 20 ms
9,072 KB
testcase_26 AC 71 ms
16,860 KB
testcase_27 AC 14 ms
7,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))

a_sum = 0
for i in a:
    a_sum += i

a_ave = a_sum / n

a_sd_sum = 0
for i in a:
    a_sd_sum += (i - a_ave)**2

a_sd = (a_sd_sum / n)**0.5

if a_sd == 0:
    print(50)
else:
    print(int(50 + (a[(int(input())) - 1] - a_ave) * 10 / a_sd))
0