結果
| 問題 | No.29 パワーアップ | 
| コンテスト | |
| ユーザー |  branlym | 
| 提出日時 | 2019-01-04 06:38:11 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 30 ms / 5,000 ms | 
| コード長 | 248 bytes | 
| コンパイル時間 | 115 ms | 
| コンパイル使用メモリ | 12,032 KB | 
| 実行使用メモリ | 10,368 KB | 
| 最終ジャッジ日時 | 2025-10-24 21:08:38 | 
| 合計ジャッジ時間 | 1,533 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 22 | 
ソースコード
def aux(x,l):
    if(x in l):
        l.remove(x)
        return 1
    else:
        l.append(x)
        return 0
n=int(input())
l=[]
r=0
for _ in range(n):
    a,b,c=map(int,input().split())
    r=r+aux(a,l)+aux(b,l)+aux(c,l)
print(r+(len(l)//4))
            
            
            
        