結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー finefine
提出日時 2015-10-15 22:43:53
言語 Ruby
(3.3.0)
結果
AC  
実行時間 142 ms / 5,000 ms
コード長 178 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 11,300 KB
実行使用メモリ 22,996 KB
最終ジャッジ日時 2023-09-08 14:38:43
合計ジャッジ時間 3,627 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,396 KB
testcase_01 AC 142 ms
22,700 KB
testcase_02 AC 77 ms
15,288 KB
testcase_03 AC 77 ms
15,036 KB
testcase_04 AC 77 ms
15,036 KB
testcase_05 AC 139 ms
22,852 KB
testcase_06 AC 78 ms
15,092 KB
testcase_07 AC 77 ms
15,132 KB
testcase_08 AC 78 ms
15,148 KB
testcase_09 AC 77 ms
15,304 KB
testcase_10 AC 78 ms
15,252 KB
testcase_11 AC 78 ms
15,244 KB
testcase_12 AC 78 ms
15,160 KB
testcase_13 AC 78 ms
15,332 KB
testcase_14 AC 113 ms
19,476 KB
testcase_15 AC 92 ms
16,772 KB
testcase_16 AC 120 ms
20,832 KB
testcase_17 AC 89 ms
16,680 KB
testcase_18 AC 121 ms
20,696 KB
testcase_19 AC 110 ms
19,152 KB
testcase_20 AC 142 ms
22,996 KB
testcase_21 AC 80 ms
15,148 KB
testcase_22 AC 99 ms
17,680 KB
testcase_23 AC 138 ms
22,492 KB
testcase_24 AC 139 ms
22,436 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n = gets.to_i
level = gets.chomp.split(" ").map(&:to_i).sort
hash_level = Hash.new(0)

level.each{|value|
	hash_level[value] += 1
}

puts hash_level.invert[hash_level.values.max]
0