about summary refs log tree commit diff
path: root/codechef/chfar.py
diff options
context:
space:
mode:
Diffstat (limited to 'codechef/chfar.py')
-rwxr-xr-xcodechef/chfar.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/codechef/chfar.py b/codechef/chfar.py
new file mode 100755
index 0000000..1c39e9b
--- /dev/null
+++ b/codechef/chfar.py
@@ -0,0 +1,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')