結果

問題 No.29 パワーアップ
ユーザー twkmath
提出日時 2018-10-19 19:38:19
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 257 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-11-18 15:39:52
合計ジャッジ時間 1,716 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

i = set(); c = 0
for _ in range(int(input())):
	j = sorted([int(e) for e in input().split()])
	if j[0]==j[1]: del j[0]; del j[1]; c+=1
	elif j[1]==j[2]: del j[1]; del j[2]; c+=1
	for e in j:
		if e in i: i.remove(e); c+=1
		else: i.add(e)
print(c+len(i)//4)
0