結果

問題 No.1134 Deviation Score Ⅱ
ユーザー miya145592miya145592
提出日時 2023-05-16 23:24:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 1,165 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 96,112 KB
最終ジャッジ日時 2023-08-21 10:33:28
合計ジャッジ時間 5,403 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,152 KB
testcase_01 AC 94 ms
93,476 KB
testcase_02 AC 88 ms
87,604 KB
testcase_03 AC 92 ms
90,976 KB
testcase_04 AC 82 ms
81,040 KB
testcase_05 AC 94 ms
93,336 KB
testcase_06 AC 80 ms
78,696 KB
testcase_07 AC 79 ms
77,416 KB
testcase_08 AC 91 ms
91,032 KB
testcase_09 AC 78 ms
76,736 KB
testcase_10 AC 78 ms
76,880 KB
testcase_11 AC 87 ms
87,352 KB
testcase_12 AC 87 ms
86,056 KB
testcase_13 AC 99 ms
95,888 KB
testcase_14 AC 90 ms
87,204 KB
testcase_15 AC 83 ms
82,248 KB
testcase_16 AC 79 ms
77,880 KB
testcase_17 AC 87 ms
85,976 KB
testcase_18 AC 89 ms
87,464 KB
testcase_19 AC 92 ms
91,172 KB
testcase_20 AC 84 ms
83,116 KB
testcase_21 AC 92 ms
91,284 KB
testcase_22 AC 90 ms
90,908 KB
testcase_23 AC 69 ms
71,668 KB
testcase_24 AC 71 ms
71,512 KB
testcase_25 AC 77 ms
76,880 KB
testcase_26 AC 96 ms
96,112 KB
testcase_27 AC 69 ms
71,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
X = list(map(int, input().split()))
M = int(input())
a = sum(X)/N
v = []
for x in X:
    v.append((x-a)**2)
u = math.sqrt(sum(v)/N)
if u==0:
    print(50)
    exit()
t = abs(X[M-1]-a)*10/u
if X[M-1]>=a:
    print(int(50+t))
else:
    print(int(50-t))
0