結果
問題 | No.79 過小評価ダメ・ゼッタイ |
ユーザー | siman |
提出日時 | 2015-01-10 22:54:30 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 219 bytes |
コンパイル時間 | 592 ms |
コンパイル使用メモリ | 11,160 KB |
実行使用メモリ | 23,424 KB |
最終ジャッジ日時 | 2023-09-03 23:02:35 |
合計ジャッジ時間 | 3,857 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 83 ms
15,256 KB |
testcase_03 | AC | 82 ms
15,396 KB |
testcase_04 | AC | 83 ms
15,068 KB |
testcase_05 | AC | 142 ms
23,424 KB |
testcase_06 | AC | 82 ms
15,116 KB |
testcase_07 | AC | 83 ms
15,328 KB |
testcase_08 | AC | 81 ms
15,036 KB |
testcase_09 | AC | 81 ms
15,248 KB |
testcase_10 | AC | 82 ms
15,240 KB |
testcase_11 | AC | 82 ms
15,060 KB |
testcase_12 | AC | 83 ms
15,232 KB |
testcase_13 | AC | 80 ms
15,148 KB |
testcase_14 | AC | 115 ms
19,132 KB |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | AC | 140 ms
22,176 KB |
testcase_24 | WA | - |
コンパイルメッセージ
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) cache = Hash.new(false) p l.group_by{|i| cache[i] || cache[i] = l.count(i)}.first.last.uniq.sort.last end end A.new