結果

問題 No.1134 Deviation Score Ⅱ
ユーザー brthyyjpbrthyyjp
提出日時 2020-10-17 09:06:43
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 87,792 KB
実行使用メモリ 90,616 KB
最終ジャッジ日時 2023-09-28 07:22:58
合計ジャッジ時間 4,717 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,744 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 79 ms
80,248 KB
testcase_05 WA -
testcase_06 AC 76 ms
78,692 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 79 ms
77,376 KB
testcase_10 AC 77 ms
77,052 KB
testcase_11 AC 85 ms
84,428 KB
testcase_12 WA -
testcase_13 AC 90 ms
90,152 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 77 ms
78,064 KB
testcase_17 AC 85 ms
83,232 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 86 ms
86,720 KB
testcase_22 AC 84 ms
86,720 KB
testcase_23 AC 69 ms
71,732 KB
testcase_24 AC 70 ms
71,956 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 69 ms
71,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
X = list(map(int, input().split()))
m = int(input())
m -= 1

e = sum(X)/n
import math
t = 0
for x in X:
    t += (x-e)**2
t /= n
t = math.sqrt(t)
if abs(t) <= 10**(-6):
    print(50)
    exit()

d = (X[m]-e)*10
d /= t
if X[m] > e:
    print(int(50+d))
else:
    print(int(50-d))
0