結果

問題 No.1134 Deviation Score Ⅱ
ユーザー ohanaohana
提出日時 2023-11-06 11:52:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 419 ms
コンパイル使用メモリ 81,772 KB
実行使用メモリ 86,280 KB
最終ジャッジ日時 2023-11-06 11:52:35
合計ジャッジ時間 3,030 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,668 KB
testcase_01 AC 62 ms
84,140 KB
testcase_02 AC 54 ms
75,840 KB
testcase_03 AC 57 ms
80,472 KB
testcase_04 AC 48 ms
69,200 KB
testcase_05 AC 60 ms
84,132 KB
testcase_06 AC 46 ms
65,584 KB
testcase_07 AC 44 ms
64,500 KB
testcase_08 AC 57 ms
80,420 KB
testcase_09 AC 45 ms
64,092 KB
testcase_10 AC 42 ms
59,996 KB
testcase_11 AC 54 ms
75,776 KB
testcase_12 AC 52 ms
74,780 KB
testcase_13 AC 61 ms
85,856 KB
testcase_14 AC 53 ms
75,788 KB
testcase_15 AC 48 ms
69,892 KB
testcase_16 AC 44 ms
64,812 KB
testcase_17 AC 53 ms
74,792 KB
testcase_18 AC 54 ms
75,848 KB
testcase_19 AC 57 ms
80,560 KB
testcase_20 AC 49 ms
70,612 KB
testcase_21 AC 56 ms
78,484 KB
testcase_22 AC 56 ms
78,204 KB
testcase_23 AC 37 ms
53,604 KB
testcase_24 AC 40 ms
53,604 KB
testcase_25 AC 44 ms
62,044 KB
testcase_26 AC 62 ms
86,280 KB
testcase_27 AC 37 ms
53,668 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]
if sum(q1) == 0:
    print(50)
    exit()
q2 = math.sqrt(sum(q1) / n)
q3 = abs(A[m - 1] - ave) * 10 / q2
if A[m - 1] > ave:
    print(int(50 + q3))
else:
    print(int(50 - q3))
0