My issue
Time Limit Exceeded
My code
# cook your dish here
x,y=map(int,input().split(" "))
a=list(map(int,input().split(" ")))
for l in range(y):
c=int(input())
z=1
for k in range(x):
z=z*(c-a[k])
if(z>0):
print("POSITIVE")
else:
print("0")
Learning course: Binary Search
Problem Link: CodeChef: Practical coding for everyone