結果

問題 No.1131 Deviation Score
ユーザー gemmarogemmaro
提出日時 2020-08-03 10:06:25
言語 Ruby
(3.3.0)
結果
AC  
実行時間 288 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 60 ms
コンパイル使用メモリ 11,572 KB
実行使用メモリ 24,192 KB
最終ジャッジ日時 2023-09-10 12:24:23
合計ジャッジ時間 5,452 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
16,480 KB
testcase_01 AC 85 ms
15,324 KB
testcase_02 AC 271 ms
20,704 KB
testcase_03 AC 161 ms
19,008 KB
testcase_04 AC 242 ms
20,196 KB
testcase_05 AC 142 ms
17,552 KB
testcase_06 AC 264 ms
20,516 KB
testcase_07 AC 164 ms
18,984 KB
testcase_08 AC 238 ms
20,104 KB
testcase_09 AC 141 ms
17,436 KB
testcase_10 AC 239 ms
20,288 KB
testcase_11 AC 239 ms
20,400 KB
testcase_12 AC 213 ms
20,552 KB
testcase_13 AC 262 ms
20,536 KB
testcase_14 AC 118 ms
16,256 KB
testcase_15 AC 117 ms
16,232 KB
testcase_16 AC 244 ms
20,328 KB
testcase_17 AC 146 ms
17,900 KB
testcase_18 AC 288 ms
24,192 KB
testcase_19 AC 87 ms
15,244 KB
testcase_20 AC 84 ms
15,192 KB
testcase_21 AC 87 ms
15,168 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# frozen_string_literal: true

def solve
  a = Rational(X.sum, N)
  X.map { |x| (50 - Rational(a - x, 2)).floor }
end

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

puts solve
0