cases = int(input())
for _ in range(cases):
numOfFighters = int(input())
binAns = 0
for _ in range(numOfFighters):
binAns ^= int(input(), 2)
count = 0
while (binAns):
count += binAns & 1
binAns >>= 1
print(count)
This code works perfectly but wont let me submit.
i tried the given test case as well as 2 of my own and nothing was wrong.