Buggy python submission (verdict: Time Limit Exceeded):
value_list = []
number_of_test = int(input())
while True:
	try:
		value = int(input())
		if value in value_list:
			value_list.remove(value)
		else:
			value_list.append(value)
	except EOFError:
		break
print(len(value_list))


Fixed submission:
import collections

cnt = int(input())
array = []
for i in range(cnt):
    array.append(int(input()))
cnt_dict = collections.Counter(array)

res = 0
for j in cnt_dict.values():
    if j % 2 != 0:
        res += 1
print(res)

Buggy python submission (verdict: Time Limit Exceeded):
value_list = []
number_of_test = int(input())
while True:
	try:
		value = int(input())
		if value_list.count(value) == 1:
			value_list.remove(value)
		else:
			value_list.append(value)
	except EOFError:
		break
print(len(value_list))


Fixed submission:
import collections

cnt = int(input())
array = []
for i in range(cnt):
    array.append(int(input()))
cnt_dict = collections.Counter(array)

res = 0
for j in cnt_dict.values():
    if j % 2 != 0:
        res += 1
print(res)

Buggy python submission (verdict: Time Limit Exceeded):
value_list = []
number_of_test = int(input())
while True:
	try:
		value = int(input())
		value_list.append(value)
		if value_list.count(value) == 2:
			value_list.remove(value)
			value_list.pop()
	except EOFError:
		break
print(len(value_list))

Fixed submission:
import collections

cnt = int(input())
array = []
for i in range(cnt):
    array.append(int(input()))
cnt_dict = collections.Counter(array)

res = 0
for j in cnt_dict.values():
    if j % 2 != 0:
        res += 1
print(res)

Buggy python submission (verdict: Time Limit Exceeded):
value = 0
value_list = []
result_list = []
number_of_test = int(input())
while True:
	try:
		value = int(input())
		value_list.append(value)
		if value_list.count(value) == 2:
			while value in value_list: value_list.remove(value)
	except EOFError:
		break
print(len(value_list))


Fixed submission:
import collections

cnt = int(input())
array = []
for i in range(cnt):
    array.append(int(input()))
cnt_dict = collections.Counter(array)

res = 0
for j in cnt_dict.values():
    if j % 2 != 0:
        res += 1
print(res)

Buggy python submission (verdict: Time Limit Exceeded):

value = 0
value_list = []
result_list = []
number_of_test = int(input())
while True:
	try:
		value = int(input())
		value_list.append(value)
		if value_list.count(value) == 2:
			while value in value_list: value_list.remove(value)
	except EOFError:
		break

# while True:
# 	value == input())
# 	print(value)
# 	if value != 0:
# 		value_list.append(value)
# 		result_list = duplicate_check(value, value_list)
# 	else:
# 		break
print(len(value_list))


Fixed submission:
import collections

cnt = int(input())
array = []
for i in range(cnt):
    array.append(int(input()))
cnt_dict = collections.Counter(array)

res = 0
for j in cnt_dict.values():
    if j % 2 != 0:
        res += 1
print(res)

Buggy python submission (verdict: Time Limit Exceeded):
def duplicate_check(value, value_list):
	if value_list.count(value) == 2:
		while value in value_list: value_list.remove(value)
	return (value_list)

value_list = []
result_list = []
number_of_test = int(input())
while True:
	try:
		value = int(input())
		value_list.append(value)
		result_list = duplicate_check(value, value_list)
	except EOFError:
		break
print(len(result_list))


Fixed submission:
import collections

cnt = int(input())
array = []
for i in range(cnt):
    array.append(int(input()))
cnt_dict = collections.Counter(array)

res = 0
for j in cnt_dict.values():
    if j % 2 != 0:
        res += 1
print(res)

Buggy python submission (verdict: Runtime Error):

def duplicate_check(value, value_list):
	if value_list.count(value) == 2:
		while value in value_list: value_list.remove(value)
	return ()value_list
value_list = []
result_list = []
while True:
	try:
		number_of_test = int(input())
		value = int(input()
		value_list.append(value)
		result_list = duplicate_check(value, value_list)
	except EOFError:
		break

print(len(result_list))


Fixed submission:
import collections

cnt = int(input())
array = []
for i in range(cnt):
    array.append(int(input()))
cnt_dict = collections.Counter(array)

res = 0
for j in cnt_dict.values():
    if j % 2 != 0:
        res += 1
print(res)