結果

問題 No.1134 Deviation Score Ⅱ
ユーザー lemonlemon
提出日時 2021-05-08 14:19:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 456 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 10,768 KB
実行使用メモリ 16,500 KB
最終ジャッジ日時 2023-10-15 01:14:04
合計ジャッジ時間 2,599 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,992 KB
testcase_01 AC 62 ms
14,664 KB
testcase_02 AC 47 ms
12,808 KB
testcase_03 AC 54 ms
13,868 KB
testcase_04 AC 33 ms
10,816 KB
testcase_05 AC 63 ms
14,836 KB
testcase_06 AC 28 ms
10,136 KB
testcase_07 AC 27 ms
9,628 KB
testcase_08 AC 56 ms
13,632 KB
testcase_09 AC 24 ms
9,360 KB
testcase_10 AC 17 ms
7,900 KB
testcase_11 AC 46 ms
12,676 KB
testcase_12 AC 45 ms
12,376 KB
testcase_13 AC 66 ms
15,932 KB
testcase_14 AC 46 ms
12,704 KB
testcase_15 AC 37 ms
11,408 KB
testcase_16 AC 26 ms
9,560 KB
testcase_17 AC 45 ms
12,612 KB
testcase_18 AC 48 ms
12,772 KB
testcase_19 AC 58 ms
14,292 KB
testcase_20 AC 39 ms
11,376 KB
testcase_21 AC 58 ms
15,024 KB
testcase_22 AC 49 ms
9,516 KB
testcase_23 AC 16 ms
7,900 KB
testcase_24 AC 16 ms
8,056 KB
testcase_25 AC 21 ms
9,268 KB
testcase_26 AC 68 ms
16,500 KB
testcase_27 AC 16 ms
7,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, math
 
sys.setrecursionlimit(10 ** 6)
stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()
nsa = lambda: list(stdin.readline().split())
mod = 10 * 7 + 7

n = ni()
X = na()
m = ni()

ave = sum(X) / n
s2 = 0
for x in X:
    s2 += (abs(ave - x)) ** 2

s2 /= n
s = math.sqrt(s2)
if s != 0:
    ans = 50 + (X[m - 1] - ave) * 10 / s 
else:
    ans = 50

print(int(ans))
0