about summary refs log tree commit diff
path: root/codechef/chfar.py
blob: 1c39e9b5ff73ea3cd9bd82e918c19e5b37b47818 (plain) (blame)
1
2
3
4
#!/usr/bin/env python3
for _ in range(int(input())):
    n, k = map(int, input().split())
    print('NO' if input().split().count('1') + k < n else 'YES')