結果

問題 No.1134 Deviation Score Ⅱ
ユーザー miya145592
提出日時 2023-05-16 23:24:37
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 279 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 86 ms
コンパイル使用メモリ 64,448 KB
実行使用メモリ 75,576 KB
最終ジャッジ日時 2026-10-16 22:15:30
合計ジャッジ時間 3,480 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 28 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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