結果

問題 No.549 素材合成システム
ユーザー simansiman
提出日時 2021-07-21 16:35:54
言語 Ruby
(3.3.0)
結果
AC  
実行時間 154 ms / 2,000 ms
コード長 91 bytes
コンパイル時間 345 ms
コンパイル使用メモリ 11,188 KB
実行使用メモリ 23,256 KB
最終ジャッジ日時 2023-09-24 13:13:35
合計ジャッジ時間 9,433 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,020 KB
testcase_01 AC 82 ms
15,160 KB
testcase_02 AC 82 ms
15,060 KB
testcase_03 AC 82 ms
15,056 KB
testcase_04 AC 81 ms
15,056 KB
testcase_05 AC 83 ms
15,108 KB
testcase_06 AC 82 ms
15,068 KB
testcase_07 AC 153 ms
23,220 KB
testcase_08 AC 152 ms
23,012 KB
testcase_09 AC 152 ms
23,068 KB
testcase_10 AC 153 ms
23,012 KB
testcase_11 AC 153 ms
23,120 KB
testcase_12 AC 152 ms
22,984 KB
testcase_13 AC 153 ms
23,256 KB
testcase_14 AC 152 ms
23,148 KB
testcase_15 AC 152 ms
23,228 KB
testcase_16 AC 154 ms
23,240 KB
testcase_17 AC 138 ms
22,800 KB
testcase_18 AC 121 ms
20,792 KB
testcase_19 AC 139 ms
22,264 KB
testcase_20 AC 136 ms
22,204 KB
testcase_21 AC 131 ms
21,896 KB
testcase_22 AC 126 ms
21,436 KB
testcase_23 AC 143 ms
23,020 KB
testcase_24 AC 142 ms
22,244 KB
testcase_25 AC 134 ms
21,452 KB
testcase_26 AC 154 ms
22,936 KB
testcase_27 AC 135 ms
21,496 KB
testcase_28 AC 85 ms
15,160 KB
testcase_29 AC 83 ms
15,060 KB
testcase_30 AC 83 ms
15,200 KB
testcase_31 AC 139 ms
22,620 KB
testcase_32 AC 144 ms
22,884 KB
testcase_33 AC 139 ms
22,536 KB
testcase_34 AC 138 ms
22,628 KB
testcase_35 AC 143 ms
23,216 KB
testcase_36 AC 142 ms
22,648 KB
testcase_37 AC 143 ms
22,584 KB
testcase_38 AC 82 ms
15,064 KB
testcase_39 AC 86 ms
15,344 KB
testcase_40 AC 123 ms
19,696 KB
testcase_41 AC 101 ms
16,956 KB
testcase_42 AC 85 ms
15,052 KB
testcase_43 AC 102 ms
17,596 KB
testcase_44 AC 87 ms
15,620 KB
testcase_45 AC 105 ms
17,964 KB
testcase_46 AC 98 ms
16,708 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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

puts X.inject { |e, x| e += x / 2 }
0