結果

問題 No.1134 Deviation Score Ⅱ
ユーザー 37zigen37zigen
提出日時 2020-08-03 16:45:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 17,236 KB
最終ジャッジ日時 2023-10-11 09:46:09
合計ジャッジ時間 2,901 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,964 KB
testcase_01 AC 55 ms
14,720 KB
testcase_02 AC 42 ms
12,928 KB
testcase_03 AC 49 ms
14,012 KB
testcase_04 AC 31 ms
10,848 KB
testcase_05 AC 55 ms
14,732 KB
testcase_06 AC 26 ms
10,068 KB
testcase_07 AC 24 ms
9,600 KB
testcase_08 AC 49 ms
13,676 KB
testcase_09 AC 23 ms
9,524 KB
testcase_10 AC 18 ms
7,956 KB
testcase_11 AC 41 ms
12,776 KB
testcase_12 AC 39 ms
12,408 KB
testcase_13 AC 57 ms
15,576 KB
testcase_14 AC 41 ms
12,960 KB
testcase_15 AC 33 ms
11,472 KB
testcase_16 AC 24 ms
9,752 KB
testcase_17 AC 40 ms
12,624 KB
testcase_18 AC 42 ms
12,776 KB
testcase_19 AC 50 ms
14,288 KB
testcase_20 AC 34 ms
11,516 KB
testcase_21 AC 49 ms
14,740 KB
testcase_22 AC 42 ms
11,740 KB
testcase_23 AC 16 ms
7,932 KB
testcase_24 AC 17 ms
7,876 KB
testcase_25 AC 20 ms
9,272 KB
testcase_26 AC 59 ms
17,236 KB
testcase_27 AC 17 ms
7,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N=int(input())
x=[int(x) for x in input().split()]
M=int(input())-1
e=sum(x)/N
y=[(v-e)**2 for v in x]
a=math.sqrt(sum(y)/N)
if a==0:
    print(50)
else:
    print(int((x[M]-e)*10/a+50))
0