結果
| 問題 | No.1134 Deviation Score Ⅱ |
| ユーザー |
brthyyjp
|
| 提出日時 | 2020-10-17 09:06:43 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 296 bytes |
| 記録 | |
| コンパイル時間 | 275 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 81,408 KB |
| 最終ジャッジ日時 | 2024-07-21 01:49:56 |
| 合計ジャッジ時間 | 3,491 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 WA * 14 |
ソースコード
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