question → CodeChef: Practical coding for everyone
my solution–>:
for _ in range(int(input())):
n,k = map(int,input().split())
arr = list(map(int,input().split()))
rej = arr.count(-1)
max=min=0
if (n-rej>ceil(n/2)):
print (“Rejected”)
else:
for i in arr:
if (i>k):
max +=1
if (i<k):
min+=1
if (max>=1):
print ("Too Slow")
elif (min==len(arr))&(rej==0):
print ("Bot")
else:
print ("Accepted")