結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー finefine
提出日時 2015-10-15 22:41:33
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 173 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 11,216 KB
実行使用メモリ 21,400 KB
最終ジャッジ日時 2023-09-28 21:51:29
合計ジャッジ時間 4,325 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,264 KB
testcase_01 AC 140 ms
21,400 KB
testcase_02 AC 82 ms
15,132 KB
testcase_03 AC 80 ms
15,040 KB
testcase_04 AC 86 ms
15,252 KB
testcase_05 AC 132 ms
21,324 KB
testcase_06 AC 82 ms
15,128 KB
testcase_07 AC 81 ms
15,088 KB
testcase_08 AC 81 ms
15,088 KB
testcase_09 AC 82 ms
15,216 KB
testcase_10 AC 83 ms
15,300 KB
testcase_11 AC 82 ms
15,304 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 111 ms
18,752 KB
testcase_15 AC 94 ms
16,512 KB
testcase_16 AC 119 ms
19,776 KB
testcase_17 AC 92 ms
16,332 KB
testcase_18 AC 116 ms
19,672 KB
testcase_19 AC 109 ms
18,332 KB
testcase_20 AC 138 ms
21,384 KB
testcase_21 AC 86 ms
15,164 KB
testcase_22 AC 101 ms
17,024 KB
testcase_23 AC 134 ms
21,156 KB
testcase_24 AC 137 ms
21,300 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

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

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

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