結果
| 問題 | No.29 パワーアップ |
| コンテスト | |
| ユーザー |
Michirakara
|
| 提出日時 | 2022-11-28 02:30:50 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 5,000 ms |
| コード長 | 241 bytes |
| 記録 | |
| コンパイル時間 | 218 ms |
| コンパイル使用メモリ | 82,552 KB |
| 実行使用メモリ | 55,544 KB |
| 最終ジャッジ日時 | 2025-10-24 21:18:53 |
| 合計ジャッジ時間 | 2,036 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
n=int(input())
a=[]
for i in range(n):
b,c,d=map(int,input().split())
a.append(b)
a.append(c)
a.append(d)
from collections import Counter
c=Counter(a)
amr=0
pw=0
for i in c.values():
pw+=i//2
amr+=i%2
print(pw+amr//4)
Michirakara