結果

問題 No.1134 Deviation Score Ⅱ
ユーザー 37zigen37zigen
提出日時 2020-08-03 16:15:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 10,740 KB
実行使用メモリ 17,004 KB
最終ジャッジ日時 2023-10-11 07:57:02
合計ジャッジ時間 2,673 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 53 ms
14,812 KB
testcase_02 AC 42 ms
12,808 KB
testcase_03 AC 48 ms
13,836 KB
testcase_04 WA -
testcase_05 AC 53 ms
14,840 KB
testcase_06 WA -
testcase_07 AC 23 ms
9,564 KB
testcase_08 AC 47 ms
13,828 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 39 ms
12,412 KB
testcase_13 WA -
testcase_14 AC 41 ms
12,836 KB
testcase_15 AC 32 ms
11,308 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 42 ms
12,788 KB
testcase_19 AC 49 ms
14,268 KB
testcase_20 AC 34 ms
11,396 KB
testcase_21 AC 49 ms
14,824 KB
testcase_22 AC 41 ms
11,628 KB
testcase_23 AC 16 ms
8,432 KB
testcase_24 AC 15 ms
8,316 KB
testcase_25 AC 21 ms
9,032 KB
testcase_26 AC 58 ms
17,004 KB
testcase_27 WA -
権限があれば一括ダウンロードができます

ソースコード

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)
    exit()
ans=(e-x[M])*10/a
if x[M]>e:
    ans=50+ans
else:
    ans=50-ans
print(int(ans))
0