結果

問題 No.1134 Deviation Score Ⅱ
ユーザー 👑 KazunKazun
提出日時 2020-07-29 02:12:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 203 bytes
コンパイル時間 454 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 90,216 KB
最終ジャッジ日時 2023-09-11 07:02:09
合計ジャッジ時間 4,186 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
70,888 KB
testcase_01 AC 96 ms
88,188 KB
testcase_02 AC 90 ms
83,532 KB
testcase_03 AC 96 ms
86,496 KB
testcase_04 AC 84 ms
79,048 KB
testcase_05 AC 95 ms
88,100 KB
testcase_06 AC 83 ms
77,368 KB
testcase_07 AC 84 ms
76,744 KB
testcase_08 AC 95 ms
86,444 KB
testcase_09 AC 83 ms
76,052 KB
testcase_10 AC 82 ms
76,008 KB
testcase_11 AC 92 ms
83,676 KB
testcase_12 AC 91 ms
82,764 KB
testcase_13 AC 100 ms
89,740 KB
testcase_14 AC 93 ms
83,928 KB
testcase_15 AC 88 ms
79,972 KB
testcase_16 AC 84 ms
76,900 KB
testcase_17 AC 91 ms
82,620 KB
testcase_18 AC 92 ms
83,884 KB
testcase_19 AC 95 ms
86,400 KB
testcase_20 AC 89 ms
80,640 KB
testcase_21 AC 95 ms
86,236 KB
testcase_22 AC 93 ms
85,936 KB
testcase_23 AC 75 ms
71,304 KB
testcase_24 AC 74 ms
71,004 KB
testcase_25 AC 82 ms
76,096 KB
testcase_26 AC 99 ms
90,216 KB
testcase_27 AC 74 ms
71,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt

N=int(input())
X=list(map(int,input().split()))
M=int(input())-1

A=sum(X)/N
S=sqrt(sum([(x-A)*(x-A) for x in X])/N)

if S==0:
    print(50)
else:
    print(int((X[M]-A)/S*10+50))
0