結果

問題 No.549 素材合成システム
ユーザー ueyukiueyuki
提出日時 2017-08-01 16:36:54
言語 Ruby
(3.2.2)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 729 ms
コンパイル使用メモリ 11,268 KB
実行使用メモリ 22,244 KB
最終ジャッジ日時 2023-08-01 08:03:28
合計ジャッジ時間 8,310 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,256 KB
testcase_01 AC 77 ms
15,180 KB
testcase_02 AC 77 ms
15,232 KB
testcase_03 AC 77 ms
15,272 KB
testcase_04 AC 77 ms
15,196 KB
testcase_05 AC 78 ms
15,056 KB
testcase_06 AC 79 ms
15,124 KB
testcase_07 AC 129 ms
22,044 KB
testcase_08 AC 130 ms
22,244 KB
testcase_09 AC 128 ms
22,096 KB
testcase_10 AC 127 ms
22,004 KB
testcase_11 AC 132 ms
21,940 KB
testcase_12 AC 129 ms
22,016 KB
testcase_13 AC 129 ms
21,972 KB
testcase_14 AC 127 ms
21,900 KB
testcase_15 AC 130 ms
22,052 KB
testcase_16 AC 127 ms
22,056 KB
testcase_17 AC 129 ms
21,448 KB
testcase_18 AC 113 ms
19,876 KB
testcase_19 AC 125 ms
21,280 KB
testcase_20 AC 125 ms
21,260 KB
testcase_21 AC 120 ms
21,236 KB
testcase_22 AC 118 ms
20,916 KB
testcase_23 AC 134 ms
22,212 KB
testcase_24 AC 121 ms
21,352 KB
testcase_25 AC 115 ms
20,568 KB
testcase_26 AC 128 ms
21,972 KB
testcase_27 AC 117 ms
20,552 KB
testcase_28 AC 81 ms
15,044 KB
testcase_29 AC 78 ms
15,056 KB
testcase_30 AC 80 ms
15,040 KB
testcase_31 AC 127 ms
21,436 KB
testcase_32 AC 125 ms
21,560 KB
testcase_33 AC 127 ms
21,540 KB
testcase_34 AC 127 ms
21,548 KB
testcase_35 AC 132 ms
22,200 KB
testcase_36 AC 130 ms
21,440 KB
testcase_37 AC 126 ms
21,652 KB
testcase_38 AC 80 ms
15,056 KB
testcase_39 AC 80 ms
15,200 KB
testcase_40 AC 108 ms
19,336 KB
testcase_41 AC 94 ms
16,852 KB
testcase_42 AC 81 ms
15,180 KB
testcase_43 AC 95 ms
16,996 KB
testcase_44 AC 82 ms
15,548 KB
testcase_45 AC 96 ms
17,272 KB
testcase_46 AC 92 ms
16,580 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.chomp.to_i
x = gets.chomp.split.map(&:to_i)

max = x.max
index = x.index(max)
x.slice!(index)

0.upto(n-2) do |i| 
  max += x[i] / 2
end

puts max
0