import sys
def func_check(l,k):
s = 0
for i in l:
if i<-100 or i >100:
exit(0)
if i<=0:
s = s+1
if s<k:
print "YES"
else:
print "NO"
t = int(raw_input())
if t<1 or t > 10:
exit(0)
for a0 in range(0,t):
lnum = map(int,raw_input().split())
if lnum[0] <1 or lnum[0]>1000:
exit(0)
if lnum[1]<1 or lnum[1]>lnum[0]:
exit(0)
#print lnum
lstudent = map(int,raw_input().split())
func_check(lstudent,lnum[1])
#print lstudent
No comments:
Post a Comment