結果
| 問題 | No.29 パワーアップ | 
| コンテスト | |
| ユーザー |  iad_2889 | 
| 提出日時 | 2019-05-08 04:04:45 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 32 ms / 5,000 ms | 
| コード長 | 280 bytes | 
| コンパイル時間 | 90 ms | 
| コンパイル使用メモリ | 12,288 KB | 
| 実行使用メモリ | 10,368 KB | 
| 最終ジャッジ日時 | 2025-10-24 21:10:16 | 
| 合計ジャッジ時間 | 1,554 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 22 | 
ソースコード
N = int(input())
power_up = 0
items = {}
for i in range(N):
    for j in input().split():
        items.setdefault(j,0)
        t = items[j] + 1
        if not t % 2:
            t = 0
            power_up+=1
        items[j] = t
power_up+=sum(items.values()) // 4
print(power_up)
            
            
            
        