結果
| 問題 | No.1134 Deviation Score Ⅱ |
| ユーザー |
brthyyjp
|
| 提出日時 | 2020-10-17 09:06:43 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 296 bytes |
| 記録 | |
| コンパイル時間 | 162 ms |
| コンパイル使用メモリ | 85,284 KB |
| 実行使用メモリ | 83,420 KB |
| 最終ジャッジ日時 | 2026-04-03 03:01:59 |
| 合計ジャッジ時間 | 3,938 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 WA * 15 |
ソースコード
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))
brthyyjp