about summary refs log tree commit diff
path: root/codechef/sc31.py
blob: 470c29409082ec8f20105083a937ea977e507871 (plain) (blame)
1
2
3
4
5
6
#!/usr/bin/env python3
from functools import reduce

for t in range(int(input())):
    print(bin(reduce(int.__xor__, (int(input(), 2)
                                   for i in range(int(input()))))).count('1'))