配列を 10^9 用意して
True,False で最終的な True を数えようと思った。
だがしかし Memory error.
じゃあ辞書 or collection counter で
A の要素を数えて偶数 or 奇数で判断するしかないな。
WriteAndErase.py
N = int(input())
dic = {}
for _ in range(N):
a = int(input())
if a not in dic:
dic[a] = 0
dic[a] += 1
cnt = 0
for i in dic.keys():
if dic[i]%2 != 0:
cnt += 1
print(cnt)