結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー osyo-mangaosyo-manga
提出日時 2023-07-21 18:05:46
言語 Ruby
(3.3.0)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 230 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 11,892 KB
実行使用メモリ 23,416 KB
最終ジャッジ日時 2023-10-21 18:28:31
合計ジャッジ時間 3,481 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
16,096 KB
testcase_01 AC 132 ms
23,336 KB
testcase_02 AC 84 ms
16,080 KB
testcase_03 AC 84 ms
16,080 KB
testcase_04 AC 83 ms
16,080 KB
testcase_05 AC 127 ms
23,416 KB
testcase_06 AC 82 ms
16,080 KB
testcase_07 AC 82 ms
16,080 KB
testcase_08 AC 81 ms
16,080 KB
testcase_09 AC 83 ms
16,080 KB
testcase_10 AC 83 ms
16,080 KB
testcase_11 AC 84 ms
16,080 KB
testcase_12 AC 84 ms
16,080 KB
testcase_13 AC 83 ms
16,080 KB
testcase_14 AC 110 ms
19,944 KB
testcase_15 AC 98 ms
17,596 KB
testcase_16 AC 117 ms
21,572 KB
testcase_17 AC 92 ms
17,412 KB
testcase_18 AC 117 ms
21,404 KB
testcase_19 AC 110 ms
19,612 KB
testcase_20 AC 133 ms
23,416 KB
testcase_21 AC 84 ms
16,080 KB
testcase_22 AC 99 ms
18,696 KB
testcase_23 AC 130 ms
22,740 KB
testcase_24 AC 132 ms
23,244 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# 入力された値を受け取る
N = gets.chomp.to_i
Ls = gets.chomp.split.map(&:to_i)


# [評価の人数, 評価] の配列に変換して、その値でソートする
puts Ls.uniq.map { [Ls.count(_1), _1] }.sort.last.last
0