結果

問題 No.182 新規性の虜
ユーザー MaxMellon
提出日時 2015-08-13 18:33:19
言語 Ruby
(3.4.1)
結果
AC  
実行時間 269 ms / 5,000 ms
コード長 137 bytes
コンパイル時間 487 ms
コンパイル使用メモリ 7,168 KB
実行使用メモリ 36,332 KB
最終ジャッジ日時 2024-12-26 19:37:34
合計ジャッジ時間 6,889 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n = gets
arr = gets.chomp.split.group_by{|e| e}.values.sort_by{|e| e.length}
ans = 0
arr.each { |k| ans += 1 if k.length == 1 }
puts ans
0