結果

問題 No.1134 Deviation Score Ⅱ
ユーザー 👑 rin204rin204
提出日時 2020-08-20 08:42:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 265 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,748 KB
最終ジャッジ日時 2024-04-21 02:31:10
合計ジャッジ時間 3,082 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,624 KB
testcase_01 AC 72 ms
16,012 KB
testcase_02 AC 57 ms
14,508 KB
testcase_03 AC 63 ms
15,464 KB
testcase_04 AC 44 ms
12,544 KB
testcase_05 AC 71 ms
15,984 KB
testcase_06 AC 39 ms
12,160 KB
testcase_07 AC 35 ms
11,520 KB
testcase_08 AC 66 ms
15,272 KB
testcase_09 AC 35 ms
11,648 KB
testcase_10 AC 28 ms
10,752 KB
testcase_11 AC 57 ms
13,952 KB
testcase_12 AC 55 ms
14,336 KB
testcase_13 AC 77 ms
16,712 KB
testcase_14 AC 59 ms
14,080 KB
testcase_15 AC 47 ms
13,056 KB
testcase_16 AC 37 ms
11,776 KB
testcase_17 AC 56 ms
14,272 KB
testcase_18 AC 59 ms
14,536 KB
testcase_19 AC 71 ms
15,712 KB
testcase_20 AC 49 ms
13,272 KB
testcase_21 AC 63 ms
15,900 KB
testcase_22 AC 56 ms
11,884 KB
testcase_23 AC 27 ms
10,624 KB
testcase_24 AC 26 ms
10,752 KB
testcase_25 AC 30 ms
11,264 KB
testcase_26 AC 78 ms
17,748 KB
testcase_27 AC 27 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
xlst = list(map(int, input().split()))
m = int(input())
point = xlst[m - 1]
ave = sum(xlst) / n
v = 0
for x in xlst:
    v += (x - ave) ** 2
v = (v / n) ** 0.5
if v == 0:
    print(50)
else:
    ans = 50 + (point - ave) * 10 / v
    print(int(ans))
0