結果
| 問題 | No.29 パワーアップ | 
| コンテスト | |
| ユーザー |  y_nakamura_CC2 | 
| 提出日時 | 2017-12-31 16:39:57 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 31 ms / 5,000 ms | 
| コード長 | 328 bytes | 
| コンパイル時間 | 95 ms | 
| コンパイル使用メモリ | 12,032 KB | 
| 実行使用メモリ | 10,368 KB | 
| 最終ジャッジ日時 | 2025-10-24 21:04:42 | 
| 合計ジャッジ時間 | 1,516 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 22 | 
ソースコード
battle = int(input())
items = [0]*11
powerUp = 0
option = 0
for i in range(battle):
    get_item = list(map(int, input().split()))
    for j in range(3):
        items[get_item[j]] += 1
for item in items:
    
    powerUp += int(item/2)
    item = item%2
    
    option += item
    
powerUp += int(option/4)
print(powerUp)
            
            
            
        