結果

問題 No.1134 Deviation Score Ⅱ
ユーザー fastmathfastmath
提出日時 2020-08-03 19:42:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 217 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 90,108 KB
最終ジャッジ日時 2023-10-11 15:31:23
合計ジャッジ時間 3,926 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,412 KB
testcase_01 AC 93 ms
88,084 KB
testcase_02 AC 87 ms
83,744 KB
testcase_03 AC 94 ms
86,424 KB
testcase_04 AC 83 ms
79,484 KB
testcase_05 AC 93 ms
87,944 KB
testcase_06 AC 83 ms
78,096 KB
testcase_07 AC 81 ms
77,060 KB
testcase_08 AC 91 ms
86,332 KB
testcase_09 AC 82 ms
76,640 KB
testcase_10 AC 81 ms
76,720 KB
testcase_11 AC 89 ms
84,200 KB
testcase_12 AC 89 ms
82,932 KB
testcase_13 AC 96 ms
89,720 KB
testcase_14 AC 88 ms
83,928 KB
testcase_15 AC 85 ms
80,080 KB
testcase_16 AC 84 ms
77,204 KB
testcase_17 AC 91 ms
82,964 KB
testcase_18 AC 90 ms
83,804 KB
testcase_19 AC 91 ms
86,824 KB
testcase_20 AC 84 ms
80,704 KB
testcase_21 AC 90 ms
86,192 KB
testcase_22 AC 91 ms
85,936 KB
testcase_23 AC 74 ms
71,420 KB
testcase_24 AC 75 ms
71,284 KB
testcase_25 AC 79 ms
76,804 KB
testcase_26 AC 95 ms
90,108 KB
testcase_27 AC 73 ms
71,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
m = int(input())-1
av = sum(a)/n
k = 0
for e in a:
    k += (e - av) ** 2
r = (k/n) ** 0.5
if r == 0:
    print(50)
else:
    print(int((a[m]-av)*10/r+50))        
0