結果

問題 No.706 多眼生物の調査
ユーザー maimai
提出日時 2018-06-29 22:22:48
言語 Ruby
(3.3.0)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 11,464 KB
実行使用メモリ 15,844 KB
最終ジャッジ日時 2023-09-13 15:19:17
合計ジャッジ時間 1,417 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,220 KB
testcase_01 AC 81 ms
15,064 KB
testcase_02 AC 78 ms
15,056 KB
testcase_03 AC 83 ms
15,072 KB
testcase_04 AC 82 ms
15,260 KB
testcase_05 AC 81 ms
15,460 KB
testcase_06 AC 84 ms
15,844 KB
testcase_07 AC 84 ms
15,136 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def ascan; gets.split.map(&:to_i); end

t = gets.to_i.times.map{gets.chomp.count('^')}

h = Hash.new(0)
t.each{|e| h[e]+=1}

p h.to_a.map{|e| [e[1],e[0]]}.max[1]
0