結果

問題 No.1134 Deviation Score Ⅱ
ユーザー brthyyjpbrthyyjp
提出日時 2020-10-17 09:08:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 252 bytes
コンパイル時間 660 ms
コンパイル使用メモリ 87,384 KB
実行使用メモリ 90,248 KB
最終ジャッジ日時 2023-09-28 07:23:03
合計ジャッジ時間 4,782 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,772 KB
testcase_01 AC 98 ms
88,416 KB
testcase_02 AC 83 ms
84,420 KB
testcase_03 AC 88 ms
86,960 KB
testcase_04 AC 74 ms
79,840 KB
testcase_05 AC 91 ms
88,420 KB
testcase_06 AC 74 ms
78,540 KB
testcase_07 AC 79 ms
77,592 KB
testcase_08 AC 88 ms
86,928 KB
testcase_09 AC 71 ms
77,372 KB
testcase_10 AC 74 ms
76,984 KB
testcase_11 AC 81 ms
84,236 KB
testcase_12 AC 80 ms
83,164 KB
testcase_13 AC 93 ms
89,800 KB
testcase_14 AC 79 ms
84,216 KB
testcase_15 AC 80 ms
80,476 KB
testcase_16 AC 76 ms
77,744 KB
testcase_17 AC 84 ms
83,408 KB
testcase_18 AC 83 ms
84,344 KB
testcase_19 AC 82 ms
86,732 KB
testcase_20 AC 81 ms
81,116 KB
testcase_21 AC 86 ms
86,700 KB
testcase_22 AC 81 ms
86,456 KB
testcase_23 AC 73 ms
71,828 KB
testcase_24 AC 72 ms
71,700 KB
testcase_25 AC 76 ms
77,272 KB
testcase_26 AC 93 ms
90,248 KB
testcase_27 AC 67 ms
71,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
X = list(map(int, input().split()))
m = int(input())
m -= 1

e = sum(X)/n
import math
t = 0
for x in X:
    t += (x-e)**2
t /= n
t = math.sqrt(t)
if abs(t) <= 10**(-6):
    print(50)
    exit()

d = (X[m]-e)*10
d /= t
print(int(50+d))
0