結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー code-devocode-devo
提出日時 2016-01-06 01:08:56
言語 Ruby
(3.2.2)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 97 bytes
コンパイル時間 348 ms
コンパイル使用メモリ 11,156 KB
実行使用メモリ 21,420 KB
最終ジャッジ日時 2023-09-08 14:41:09
合計ジャッジ時間 4,093 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,152 KB
testcase_01 AC 130 ms
21,040 KB
testcase_02 AC 79 ms
15,276 KB
testcase_03 AC 80 ms
15,148 KB
testcase_04 AC 80 ms
15,328 KB
testcase_05 AC 128 ms
21,352 KB
testcase_06 AC 79 ms
15,076 KB
testcase_07 AC 84 ms
15,312 KB
testcase_08 AC 82 ms
15,316 KB
testcase_09 AC 81 ms
15,088 KB
testcase_10 AC 80 ms
15,044 KB
testcase_11 AC 80 ms
15,052 KB
testcase_12 AC 79 ms
15,076 KB
testcase_13 AC 80 ms
15,040 KB
testcase_14 AC 105 ms
18,584 KB
testcase_15 AC 92 ms
16,540 KB
testcase_16 AC 112 ms
19,456 KB
testcase_17 AC 89 ms
16,096 KB
testcase_18 AC 112 ms
19,484 KB
testcase_19 AC 104 ms
18,288 KB
testcase_20 AC 128 ms
21,420 KB
testcase_21 AC 81 ms
15,124 KB
testcase_22 AC 97 ms
16,904 KB
testcase_23 AC 127 ms
20,940 KB
testcase_24 AC 129 ms
20,904 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a = Array.new(7, 0)
gets
gets.split.map(&:to_i).each do |l|
  a[l] += 1
end
puts a.rindex(a.max)
0