結果

問題 No.1134 Deviation Score Ⅱ
ユーザー pluto77pluto77
提出日時 2020-07-29 10:33:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 627 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 16,984 KB
最終ジャッジ日時 2023-09-11 07:12:01
合計ジャッジ時間 2,556 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,980 KB
testcase_01 AC 54 ms
14,856 KB
testcase_02 AC 41 ms
12,792 KB
testcase_03 AC 47 ms
14,060 KB
testcase_04 AC 30 ms
10,728 KB
testcase_05 AC 52 ms
14,720 KB
testcase_06 AC 26 ms
10,060 KB
testcase_07 AC 23 ms
9,520 KB
testcase_08 AC 46 ms
13,792 KB
testcase_09 AC 22 ms
9,388 KB
testcase_10 AC 17 ms
7,932 KB
testcase_11 AC 40 ms
12,860 KB
testcase_12 AC 40 ms
12,432 KB
testcase_13 AC 55 ms
15,516 KB
testcase_14 AC 40 ms
12,852 KB
testcase_15 AC 33 ms
11,236 KB
testcase_16 AC 24 ms
9,716 KB
testcase_17 AC 40 ms
12,580 KB
testcase_18 AC 41 ms
12,900 KB
testcase_19 AC 49 ms
14,200 KB
testcase_20 AC 33 ms
11,480 KB
testcase_21 AC 48 ms
14,760 KB
testcase_22 AC 41 ms
11,552 KB
testcase_23 AC 16 ms
7,904 KB
testcase_24 AC 16 ms
7,916 KB
testcase_25 AC 20 ms
9,092 KB
testcase_26 AC 58 ms
16,984 KB
testcase_27 AC 16 ms
7,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1134
from math import *
n=int(input())
l=list(map(int,input().split()))
m=int(input())-1
s=sum(l)/n
a=[(s-l[i])**2 for i in range(n)]
x=sqrt(sum(a)/n)
if x>0:
 print(int((l[m]-s)*10/x+50))
else:
 print(50)
0