結果
| 問題 | No.1134 Deviation Score Ⅱ |
| ユーザー |
|
| 提出日時 | 2021-02-25 18:34:01 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 75 ms / 2,000 ms |
| コード長 | 386 bytes |
| コンパイル時間 | 272 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 17,772 KB |
| 最終ジャッジ日時 | 2024-10-01 08:42:43 |
| 合計ジャッジ時間 | 2,316 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 27 |
ソースコード
import sys
N = int(input())
l = list(map(int, input().split()))
M = int(input())
av = sum(l) / N
# print(av)
def f(x):
return (x - av)**2
ll = list(map(f, l))
av2 = sum(ll) / N
root = av2 ** 0.5
if root == 0:
print(50)
sys.exit()
# print(root)
div = abs(l[M - 1] - av)
st3 = (div*10) / root
if l[M - 1] >= av :
print(int(50 + st3))
else:
print(int(50 - st3))