結果
| 問題 | No.1134 Deviation Score Ⅱ |
| ユーザー |
kou_kkk
|
| 提出日時 | 2026-11-05 08:28:27 |
| 言語 | F# (F# 10.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 531 bytes |
| 記録 | |
| コンパイル時間 | 13,014 ms |
| コンパイル使用メモリ | 212,948 KB |
| 実行使用メモリ | 51,328 KB |
| 最終ジャッジ日時 | 2026-11-05 08:28:52 |
| 合計ジャッジ時間 | 25,198 ms |
|
ジャッジサーバーID (参考情報) |
judge7_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 31 WA * 1 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (525 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.0/publish/
ソースコード
// 人数
let n = stdin.ReadLine() |> int
// データ
let xs =
stdin.ReadLine().Split()
|> Array.map decimal
// 対象者
let m = stdin.ReadLine() |> int
// 平均
let ave = xs |> Array.average
// 分散
let variance =
xs
|> Array.map (fun x -> (x - ave) * (x - ave))
|> Array.average
// 標準偏差
let stdDeviation =
variance
|> float
|> sqrt
|> decimal
// 偏差値
if stdDeviation <> 0.0M then
50.0M + 10.0M * (xs.[m-1] - ave) / stdDeviation
else
50.0M
|> int
|> printfn "%d"
kou_kkk