結果

問題 No.1131 Deviation Score
ユーザー kou_kkkkou_kkk
提出日時 2023-09-12 19:36:15
言語 Nim
(2.0.2)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 4,926 ms
コンパイル使用メモリ 68,828 KB
実行使用メモリ 10,380 KB
最終ジャッジ日時 2023-09-12 19:36:24
合計ジャッジ時間 7,856 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
4,472 KB
testcase_01 AC 4 ms
4,388 KB
testcase_02 AC 126 ms
9,848 KB
testcase_03 AC 58 ms
5,996 KB
testcase_04 AC 117 ms
9,908 KB
testcase_05 AC 43 ms
5,044 KB
testcase_06 AC 126 ms
9,956 KB
testcase_07 AC 60 ms
6,040 KB
testcase_08 AC 114 ms
9,820 KB
testcase_09 AC 41 ms
4,960 KB
testcase_10 AC 110 ms
9,756 KB
testcase_11 AC 110 ms
9,832 KB
testcase_12 AC 98 ms
9,140 KB
testcase_13 AC 126 ms
9,896 KB
testcase_14 AC 26 ms
4,480 KB
testcase_15 AC 26 ms
4,420 KB
testcase_16 AC 115 ms
9,784 KB
testcase_17 AC 46 ms
5,032 KB
testcase_18 AC 145 ms
10,380 KB
testcase_19 AC 2 ms
4,376 KB
testcase_20 AC 2 ms
4,380 KB
testcase_21 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sequtils, stats, strutils

let
  n = parseInt readLine stdin
  xs = stdin.readLine.split.map parseInt
var rs: RunningStat
rs.push xs

proc d(a, x: float): int = int 50 - (a - x) / 2

for x in xs:
  echo d(rs.mean, float x)
0