結果

問題 No.1134 Deviation Score Ⅱ
ユーザー MaboyMaboy
提出日時 2021-10-03 17:22:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 601 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 16,488 KB
最終ジャッジ日時 2023-09-28 17:03:55
合計ジャッジ時間 3,855 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,820 KB
testcase_01 AC 51 ms
14,572 KB
testcase_02 AC 40 ms
12,656 KB
testcase_03 AC 46 ms
13,652 KB
testcase_04 AC 29 ms
10,596 KB
testcase_05 AC 50 ms
14,604 KB
testcase_06 AC 25 ms
9,828 KB
testcase_07 AC 21 ms
9,500 KB
testcase_08 AC 44 ms
13,504 KB
testcase_09 AC 21 ms
9,476 KB
testcase_10 AC 16 ms
7,776 KB
testcase_11 AC 38 ms
12,588 KB
testcase_12 AC 37 ms
12,232 KB
testcase_13 AC 52 ms
15,148 KB
testcase_14 AC 38 ms
12,612 KB
testcase_15 AC 31 ms
11,260 KB
testcase_16 AC 22 ms
9,488 KB
testcase_17 AC 37 ms
12,320 KB
testcase_18 AC 39 ms
12,744 KB
testcase_19 AC 47 ms
14,000 KB
testcase_20 AC 31 ms
11,232 KB
testcase_21 AC 47 ms
14,560 KB
testcase_22 AC 40 ms
11,420 KB
testcase_23 AC 16 ms
7,800 KB
testcase_24 AC 16 ms
7,876 KB
testcase_25 AC 20 ms
9,212 KB
testcase_26 AC 55 ms
16,488 KB
testcase_27 AC 16 ms
7,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
x = list(map(int,input().split()))
m = int(input())

av = sum(x) / n
d1 = [(i - av) ** 2 for i in x]
d2 = (sum(d1)/n) ** 0.5
xm = x[m-1]

if d2 != 0:
    d3 = (xm - av) * 10 / d2
    d4 = 50 + d3
else:
    d4 = 50
print(int(d4))
0