結果

問題 No.1134 Deviation Score Ⅱ
ユーザー ohanaohana
提出日時 2023-11-06 11:46:07
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 301 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 81,860 KB
実行使用メモリ 87,352 KB
最終ジャッジ日時 2023-11-06 11:46:12
合計ジャッジ時間 4,066 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,664 KB
testcase_01 AC 57 ms
80,028 KB
testcase_02 AC 52 ms
73,776 KB
testcase_03 AC 55 ms
78,408 KB
testcase_04 AC 48 ms
67,136 KB
testcase_05 AC 56 ms
80,020 KB
testcase_06 AC 44 ms
65,568 KB
testcase_07 AC 43 ms
64,484 KB
testcase_08 AC 55 ms
78,356 KB
testcase_09 AC 43 ms
64,076 KB
testcase_10 AC 42 ms
59,980 KB
testcase_11 AC 52 ms
73,712 KB
testcase_12 AC 51 ms
72,716 KB
testcase_13 AC 60 ms
83,792 KB
testcase_14 AC 54 ms
73,724 KB
testcase_15 AC 50 ms
69,876 KB
testcase_16 AC 44 ms
64,796 KB
testcase_17 AC 51 ms
72,728 KB
testcase_18 AC 52 ms
73,784 KB
testcase_19 AC 56 ms
78,496 KB
testcase_20 AC 49 ms
70,596 KB
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 AC 43 ms
62,028 KB
testcase_26 AC 60 ms
84,216 KB
testcase_27 AC 37 ms
53,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = int(input())
A = list(map(int, input().split()))
m = int(input())

ave = sum(A) / n

q1 = [((a - ave) ** 2) for a in A]
q2 = math.sqrt(sum(q1) / n)
q3 = abs(A[m - 1] - ave) * 10 / q2
if q2 == 0:
    print(50)
elif A[m - 1] > ave:
    print(int(50 + q3))
else:
    print(int(50 - q3))
0