結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー d_nishiyama85d_nishiyama85
提出日時 2016-06-05 14:40:41
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 203 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 19,456 KB
最終ジャッジ日時 2024-04-17 04:48:12
合計ジャッジ時間 4,070 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 131 ms
19,200 KB
testcase_02 AC 83 ms
12,416 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 125 ms
19,328 KB
testcase_06 AC 85 ms
12,288 KB
testcase_07 AC 84 ms
12,288 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 81 ms
12,288 KB
testcase_11 WA -
testcase_12 AC 80 ms
12,416 KB
testcase_13 AC 82 ms
12,416 KB
testcase_14 AC 115 ms
16,384 KB
testcase_15 AC 97 ms
13,568 KB
testcase_16 AC 124 ms
17,536 KB
testcase_17 AC 96 ms
13,568 KB
testcase_18 AC 120 ms
17,408 KB
testcase_19 AC 106 ms
15,744 KB
testcase_20 AC 128 ms
19,456 KB
testcase_21 AC 86 ms
12,544 KB
testcase_22 AC 102 ms
14,592 KB
testcase_23 AC 130 ms
18,816 KB
testcase_24 AC 132 ms
18,816 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:3: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

require 'pp'

n = gets.to_i
max = gets.split(' ')
           .map{|e| e.to_i}
           .group_by{|e| e}
           .map{|k, e| [k, e.length]}
           .to_h
           .max_by{|k, v| v}

puts max[0]
0