結果

問題 No.706 多眼生物の調査
ユーザー cielciel
提出日時 2017-11-26 19:38:07
言語 Ruby
(3.3.0)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 79 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 11,388 KB
実行使用メモリ 15,836 KB
最終ジャッジ日時 2023-09-12 15:31:07
合計ジャッジ時間 1,496 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,140 KB
testcase_01 AC 81 ms
15,100 KB
testcase_02 AC 80 ms
15,304 KB
testcase_03 AC 82 ms
15,188 KB
testcase_04 AC 82 ms
15,132 KB
testcase_05 AC 82 ms
15,432 KB
testcase_06 AC 83 ms
15,836 KB
testcase_07 AC 80 ms
15,084 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

h=Hash.new 0
gets.to_i.times{h[gets.chomp.size-2]+=1}
p h.max_by{|k,v|[v,k]}[0]
0