This is Discussion thread about QUEST FOR CODING BLOCKS TSHIRTS
Discussion About QUEST FOR CODING BLOCKS TSHIRTS
n=int(input())
b=[]
while(n):
cnt=0
m,k=list(map(int,input().split()))
c=list(map(int,input().split()))[:m]
for i in range(k):
b.extend("".join(format(c[i],‘0b’)))
for j in b:
if int(j)==1:
cnt+=1
print(cnt)