結果
| 問題 | No.1134 Deviation Score Ⅱ |
| ユーザー |
brthyyjp
|
| 提出日時 | 2020-10-17 09:08:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 2,000 ms |
| コード長 | 252 bytes |
| 記録 | |
| コンパイル時間 | 188 ms |
| コンパイル使用メモリ | 85,640 KB |
| 実行使用メモリ | 81,408 KB |
| 最終ジャッジ日時 | 2026-03-20 12:52:25 |
| 合計ジャッジ時間 | 2,503 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 28 |
ソースコード
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