結果
| 問題 |
No.79 過小評価ダメ・ゼッタイ
|
| コンテスト | |
| ユーザー |
siman
|
| 提出日時 | 2015-01-10 22:50:32 |
| 言語 | Ruby (3.4.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 180 bytes |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 24,064 KB |
| 最終ジャッジ日時 | 2024-06-13 03:37:19 |
| 合計ジャッジ時間 | 7,656 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | AC * 1 TLE * 1 -- * 20 |
コンパイルメッセージ
Main.rb:3: warning: assigned but unused variable - n Syntax OK
ソースコード
class A
def initialize
n = gets.chomp.to_i
l = gets.chomp.split(' ').map(&:to_i)
p l.group_by{|i| l.count(i)}.sort.reverse.to_h.first.last.sort.last
end
end
A.new
siman