結果
| 問題 | No.29 パワーアップ | 
| コンテスト | |
| ユーザー |  urutom | 
| 提出日時 | 2016-04-19 00:23:15 | 
| 言語 | Ruby (3.4.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 83 ms / 5,000 ms | 
| コード長 | 166 bytes | 
| コンパイル時間 | 107 ms | 
| コンパイル使用メモリ | 8,192 KB | 
| 実行使用メモリ | 13,056 KB | 
| 最終ジャッジ日時 | 2025-10-24 20:56:56 | 
| 合計ジャッジ時間 | 2,668 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 22 | 
コンパイルメッセージ
Syntax OK
ソースコード
items=Array.new(11,0)
gets.to_i.times{
	gets.split.map(&:to_i).each{|a|items[a]+=1}
}
ans=0
residue=0
items.each{|num|
	ans+=num/2
	residue+=num%2
}
p ans+(residue/4)
            
            
            
        