結果
| 問題 | No.1134 Deviation Score Ⅱ |
| ユーザー |
r_ishida
|
| 提出日時 | 2026-03-05 00:22:28 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
WA
不安定
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 572 bytes |
| 記録 | |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 64,660 KB |
| 実行使用メモリ | 72,100 KB |
| 最終ジャッジ日時 | 2026-10-17 02:40:20 |
| 合計ジャッジ時間 | 5,098 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 28 WA * 1 |
ソースコード
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)*10/st+50 >= 0:
ans = math.floor((x[m-1]-me)*10/st+50)
else:
ans = math.floor((x[m-1]-me)*10/st+50) + 1
print(ans)
r_ishida