結果
| 問題 |
No.1134 Deviation Score Ⅱ
|
| ユーザー |
brthyyjp
|
| 提出日時 | 2020-10-17 09:08:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 71 ms / 2,000 ms |
| コード長 | 252 bytes |
| コンパイル時間 | 258 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 80,768 KB |
| 最終ジャッジ日時 | 2024-07-21 01:49:59 |
| 合計ジャッジ時間 | 2,786 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 27 |
ソースコード
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
print(int(50+d))
brthyyjp