From d5b549d83292f6573ef3715c17f1d57a41918fb7 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Tue, 30 Oct 2018 13:22:36 +0700 Subject: Fouracesinarow --- codechef/chfar.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 codechef/chfar.py (limited to 'codechef/chfar.py') 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') -- cgit 1.4.1