We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
n,k = map(int,input().strip().split(' '))
a = [int(a_temp) for a_temp in input().strip().split(' ')]
print('YES' if len([i for i in a if i<=0])<k else 'NO')
Angry Professor
You are viewing a single comment's thread. Return to all comments →
with Python 3
t = int(input().strip())
for _ in range(t):