結果

問題 No.1131 Deviation Score
ユーザー yuruhiyayuruhiya
提出日時 2020-07-27 07:56:51
言語 Crystal
(1.11.2)
結果
AC  
実行時間 15 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 17,020 ms
コンパイル使用メモリ 253,468 KB
実行使用メモリ 9,160 KB
最終ジャッジ日時 2023-09-13 11:29:06
合計ジャッジ時間 19,022 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
5,380 KB
testcase_01 AC 3 ms
4,540 KB
testcase_02 AC 12 ms
8,004 KB
testcase_03 AC 7 ms
6,108 KB
testcase_04 AC 12 ms
7,948 KB
testcase_05 AC 6 ms
5,704 KB
testcase_06 AC 12 ms
7,968 KB
testcase_07 AC 6 ms
6,352 KB
testcase_08 AC 11 ms
7,996 KB
testcase_09 AC 6 ms
5,756 KB
testcase_10 AC 11 ms
7,868 KB
testcase_11 AC 11 ms
8,092 KB
testcase_12 AC 9 ms
7,164 KB
testcase_13 AC 12 ms
7,928 KB
testcase_14 AC 4 ms
5,172 KB
testcase_15 AC 5 ms
5,324 KB
testcase_16 AC 12 ms
7,984 KB
testcase_17 AC 6 ms
5,608 KB
testcase_18 AC 15 ms
9,160 KB
testcase_19 AC 3 ms
4,376 KB
testcase_20 AC 3 ms
4,404 KB
testcase_21 AC 2 ms
4,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = read_line.to_i
a = read_line.split.map &.to_i
ave = a.sum/n
puts n.times.join('\n') { |i|
  (50 - (ave - a[i]) / 2).to_i
}
0