結果
| 問題 | No.1134 Deviation Score Ⅱ |
| ユーザー |
r_ishida
|
| 提出日時 | 2026-03-05 00:19:14 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 557 bytes |
| 記録 | |
| コンパイル時間 | 657 ms |
| コンパイル使用メモリ | 86,028 KB |
| 実行使用メモリ | 97,620 KB |
| 最終ジャッジ日時 | 2026-03-05 00:19:23 |
| 合計ジャッジ時間 | 6,443 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 WA * 12 |
ソースコード
import math
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
n = I()
x = LI()
m = I()
from statistics import pstdev, mean
st = pstdev(x)
me = mean(x)
if st == 0:
ans = 50
elif x[m-1]-me >= 0:
ans = math.floor((x[m-1]-me)*10/st)+50
else:
ans = math.floor((x[m-1]-me)*10/st)+51
print(ans)
r_ishida