結果

問題 No.1131 Deviation Score
ユーザー simansiman
提出日時 2020-07-28 01:36:20
言語 Ruby
(3.3.0)
結果
AC  
実行時間 286 ms / 2,000 ms
コード長 117 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 11,480 KB
実行使用メモリ 24,180 KB
最終ジャッジ日時 2023-09-10 12:19:30
合計ジャッジ時間 5,400 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
16,496 KB
testcase_01 AC 85 ms
15,256 KB
testcase_02 AC 258 ms
20,624 KB
testcase_03 AC 163 ms
18,872 KB
testcase_04 AC 243 ms
20,268 KB
testcase_05 AC 143 ms
17,544 KB
testcase_06 AC 259 ms
20,728 KB
testcase_07 AC 163 ms
18,944 KB
testcase_08 AC 236 ms
20,408 KB
testcase_09 AC 138 ms
17,400 KB
testcase_10 AC 230 ms
20,344 KB
testcase_11 AC 236 ms
20,184 KB
testcase_12 AC 212 ms
20,380 KB
testcase_13 AC 257 ms
20,464 KB
testcase_14 AC 116 ms
16,232 KB
testcase_15 AC 115 ms
15,996 KB
testcase_16 AC 242 ms
20,300 KB
testcase_17 AC 145 ms
17,844 KB
testcase_18 AC 286 ms
24,180 KB
testcase_19 AC 85 ms
15,048 KB
testcase_20 AC 80 ms
15,188 KB
testcase_21 AC 81 ms
15,156 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i
X = gets.split.map(&:to_i)

a = Rational(X.sum, N)

puts X.map { |x| (50 - Rational(a - x, 2)).floor }
0