結果
| 問題 | No.29 パワーアップ | 
| コンテスト | |
| ユーザー |  Konton7 | 
| 提出日時 | 2020-03-21 12:14:01 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 29 ms / 5,000 ms | 
| コード長 | 242 bytes | 
| コンパイル時間 | 93 ms | 
| コンパイル使用メモリ | 12,032 KB | 
| 実行使用メモリ | 10,496 KB | 
| 最終ジャッジ日時 | 2025-10-24 21:13:36 | 
| 合計ジャッジ時間 | 1,417 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 22 | 
ソースコード
n = int(input())
item = [0] * 14
for i in range(n):
    a, b, c = [ int(v) for v in input().split() ]
    item[a] += 1
    item[b] += 1
    item[c] += 1
total = sum([i // 2 for i in item])
total += sum([i % 2 for i in item]) // 4
print(total)
            
            
            
        