My issue
I do not know why my code is not working, Please help anyOne.
My code
for _ in range(int(input())):
n, k = map(int, input().split())
arr = []
for _ in range(n):
x = int(input(), 2)
if x != 0 and x & (x - 1) == 0:
arr.append(x)
print("NO" if len(arr) < k else "YES")
Problem Link: ALIEN-OR Practice Coding Problem - CodeChef