結果

問題 No.29 パワーアップ
ユーザー nebukuro09
提出日時 2016-09-03 09:53:48
言語 Python2
(2.7.18)
結果
AC  
実行時間 13 ms / 5,000 ms
コード長 206 bytes
コンパイル時間 1,101 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-15 18:31:05
合計ジャッジ時間 1,407 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
a = []
for i in xrange(input()):
    a += map(int, raw_input().split())
c = Counter(a)
ans = 0
for k in c:
    ans += c[k]/2
    c[k] %= 2
ans += sum(c.values())/4
print ans
0