結果

問題 No.706 多眼生物の調査
ユーザー mizomizo
提出日時 2018-06-29 23:16:47
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 127 bytes
コンパイル時間 60 ms
コンパイル使用メモリ 11,416 KB
実行使用メモリ 15,664 KB
最終ジャッジ日時 2023-09-13 15:39:18
合計ジャッジ時間 1,588 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,216 KB
testcase_01 AC 81 ms
15,068 KB
testcase_02 AC 79 ms
15,052 KB
testcase_03 AC 81 ms
15,072 KB
testcase_04 AC 89 ms
15,064 KB
testcase_05 AC 116 ms
15,192 KB
testcase_06 WA -
testcase_07 AC 79 ms
15,136 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
num = []

n.times do |i|
	num[i] = gets.count("^")
end

print num.sort{|x,y| num.count(y) <=> num.count(x) }[0]

0