結果

問題 No.1134 Deviation Score Ⅱ
ユーザー dangodango
提出日時 2023-06-24 18:59:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 512 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 86,816 KB
実行使用メモリ 96,404 KB
最終ジャッジ日時 2023-09-14 14:38:09
合計ジャッジ時間 4,616 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
70,940 KB
testcase_01 AC 99 ms
93,052 KB
testcase_02 AC 93 ms
87,252 KB
testcase_03 AC 104 ms
90,976 KB
testcase_04 AC 87 ms
80,868 KB
testcase_05 AC 100 ms
93,100 KB
testcase_06 AC 86 ms
78,708 KB
testcase_07 AC 83 ms
76,904 KB
testcase_08 AC 95 ms
90,952 KB
testcase_09 AC 80 ms
76,992 KB
testcase_10 AC 80 ms
76,360 KB
testcase_11 AC 91 ms
87,236 KB
testcase_12 AC 91 ms
85,672 KB
testcase_13 AC 99 ms
95,564 KB
testcase_14 AC 92 ms
87,464 KB
testcase_15 AC 89 ms
82,032 KB
testcase_16 AC 84 ms
77,600 KB
testcase_17 AC 90 ms
85,824 KB
testcase_18 AC 92 ms
87,192 KB
testcase_19 AC 96 ms
91,240 KB
testcase_20 AC 88 ms
82,816 KB
testcase_21 AC 95 ms
90,252 KB
testcase_22 AC 94 ms
90,152 KB
testcase_23 AC 74 ms
70,888 KB
testcase_24 AC 72 ms
71,048 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 73 ms
71,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
X = list(map(int, input().split()))
A = []
M = 0
for i in range(N):
    A.append(X[i])
    M += A[i]
M /= N
AS = True
for i in range(1, N):
    if A[i] != A[0]:
        AS = False
        break
if AS:
    print("50")
    exit(0)
Q = 0
for i in range(N):
    Q += (A[i] - M) ** 2
RQ = (Q / N) ** 0.5
M1 = int(input())
ret = 50 + 10 * (A[M1 - 1] - M) / RQ
if 50 + 10 * (A[M1 - 1] - M) / RQ >= 0:
    print(int(50 + 10 * (A[M1 - 1] - M) / RQ))
else:
    print(-int(-50 + 10 * (A[M1 - 1] - M) / RQ))
0