Problem:


Problem Statement

You are given two integers a and b (a≤b). Determine if the product of the integers a, a+1, …, b is positive, negative or zero.

Constraints

a and b are integers.

-10^9≤a≤b≤10^9

Partial Score

In test cases worth 100 points, -10≤a≤b≤10.

Input

The input is given from Standard Input in the following format:

a b

Output

If the product is positive, print Positive. If it is negative, print Negative. If it is zero, print Zero.

Sample Input 1

1 3

Sample Output 1

Positive

1×2×3=6 is positive.

Sample Input 2

-3 -1

Sample Output 2

Negative

(-3)×(-2)×(-1)=-6 is negative.

Sample Input 3

-1 1

Sample Output 3

Zero

(-1)×0×1=0.



Sample input:
1 3


Sample output:
Positive

Submission status: Wrong Answer

Solution code:
import numpy
a,b = map(int,input().split())

if numpy.sign(a*b)==-1:
  print('Zero')
elif (numpy.sign(a)==1) or (numpy.sign(b)==1):
  print('Positive')
elif (a-b)%2==0:
  print('Positive')
else:
  print('Negative')

Submission status: Wrong Answer

Solution code:
import numpy
a,b = map(int,input().split())

ans=a
c=a
if a==b :
  ans=a**b
else:
  for i in range(1,b-a):
    c = c+1
    ans = ans * c
pm = numpy.sign(ans)
if pm==0:
  print('Zero')
elif pm==1:
  print('Positive')
else:
  print('Negative')

Submission status: Wrong Answer

Solution code:
import numpy
a,b = map(int,input().split())

ans=a
c=a
if a==b :
  ans=a**b
else:
  while c<=b:
    c=c+1
    ans=ans*c
pm = numpy.sign(ans)
if pm==0:
  print('Zero')
elif pm==1:
  print('Positive')
else:
  print('Negative')

Submission status: Wrong Answer

Solution code:
import numpy
a,b = map(int,input().split())

ans=a
c=a
if a==b :
  ans=a**b
else:
  while c<=b:
    c=c+1
    ans=ans*c
pm = numpy.sign(ans)
if pm==0:
  print('zero')
elif pm==1:
  print('Positive')
else:
  print('Negative')
print(ans)

Submission status: Wrong Answer

Solution code:
import numpy
a,b = map(int,input().split())

ans=1
c=a
if a==b :
  ans=a**b
else:
  while c<=b:
    ans = ans * c
    c = c + 1
pm = numpy.sign(ans)
if pm==0:
  print('zero')
elif pm==1:
  print('Positive')
else:
  print('Negative')

Submission status: Wrong Answer

Solution code:
import numpy
a,b = map(int,input().split())

ans=1
c=a
while c<=b:
  ans = ans * c
  c = c + 1
pm = numpy.sign(ans)
if pm==0:
  print('zero')
elif pm==1:
  print('Positive')
else:
  print('Negative')

Submission status: Wrong Answer

Solution code:
import numpy
a,b = map(int,input().split())

ans=a
c=a+1
while c<=b:
  ans = ans * c
  c = c + 1
pm = numpy.sign(ans)
if pm==0:
  print('zero')
elif pm==1:
  print('Positive')
else:
  print('Negative')

Submission status: Wrong Answer

Solution code:
import numpy
a,b = map(int,input().split())

ans=a
for i in range(b+1):
  ans = ans * (a+i)
pm = numpy.sign(ans)
if pm==0:
  print('zero')
elif pm==1:
  print('Positive')
else:
  print('Negative')

Submission status: Wrong Answer

Solution code:
a, b= map(int, input().split())
if (a<0)and(b<0):
    print('Negative')
elif (a>0)and(b>0):
    print('Positive')
elif (a==0)or(b==0):
    print('Zero')
else:
    print('Zero')

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split()]
if 0 <= a and 0 >= b:
    print('Zero')
    exit()
if a > 0:
    print('Positive')
    exit()
if (b - a) % 2:
    print('Positive')
    exit()
print('Negative')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a > 0:
    print("Positive")
elif b < 0:
    if (b - a) % 2 == 0:
        print("Negative")
    else:
        print("Positive")
else:
    print(0)

Submission status: Wrong Answer

Solution code:
def main(a, b):
    if 0 < a and 0 < b:
        print("Positive")
        return

    if a <= b < 0:
        print("Negative")
        return
    elif (a - b) % 3 == 0:
        print("Positive")
        return

    print("Zero")


if __name__ == "__main__":
    a, b = map(int, input().split())
    main(a, b)

Submission status: Wrong Answer

Solution code:
import numpy as np

a,b = map(int,(input().split()))

if a == 0 or b == 0 or (a <0 and b > 0):
    print("Zero")
elif a > 0:
    print("Positive")
else:
    print("Negative")

Submission status: Wrong Answer

Solution code:
import sys
a,b = map(int,input().split())
c = 0
if a < 0 and b < 0:
    if  (a-b) % 2 == 1:
        print("Positive")
        sys.exit()
elif a < 0 and b >= 0:
    if a%2 == 0:
        print("Positive")
        sys.exit()
elif b < 0 and a >= 0:
    if b % 2 == 0:
        print("Positive")
        sys.exit()
if (a+b) == 0:
    print("Zero")
elif (a+b) > 0:
    print("Positive")
else:
    print("Negative")

Submission status: Wrong Answer

Solution code:
import sys
a,b = map(int,input().split())
c = 0
if a < 0 and b < 0:
    if  (a-b) % 2 == 1:
        print("Positive")
        sys.exit()
elif a < 0 and b >= 0:
    if a%2 == 0:
        print("Positive")
        sys.exit()
elif a < 0 and b >= 0:
    if b % 2 == 0:
        print("Positive")
        sys.exit()
if (a+b) == 0:
    print("Zero")
elif (a+b) > 0:
    print("Positive")
else:
    print("Negative")

Submission status: Wrong Answer

Solution code:
import sys
a,b = map(int,input().split())
c = 0
if a < 0 and b < 0:
    if  a-b % 2 == 0:
        print("Positive")
        sys.exit()
elif a < 0 and b >= 0:
    if a%2 == 0:
        print("Positive")
        sys.exit()
elif a < 0 and b >= 0:
    if b % 2 == 0:
        print("Positive")
        sys.exit()
if (a+b) == 0:
    print("Zero")
elif (a+b) > 0:
    print("Positive")
else:
    print("Negative")

Submission status: Wrong Answer

Solution code:
import sys
a,b = map(int,input().split())
c = 0
if a < 0 and b < 0:
    if  a-b % 2 == 0:
        print("Positive")
elif a < 0 and b >= 0:
    if a%2 == 0:
        print("Positive")
elif a < 0 and b >= 0:
    if b % 2 == 0:
        print("Positive")
elif (a+b) == 0:
    print("Zero")
elif (a+b) > 0:
    print("Positive")
else:
    print("Negative")

Submission status: Wrong Answer

Solution code:
import sys
a,b = map(int,input().split())
c = 0
if a < 0 or b < 0:
    for i in range(a,b):
        if i == 0:
            break
        else:
            c += i
    if c % 2 == 0:
        print("Positive")
        sys.exit()
if (a+b) == 0:
    print("Zero")
elif (a+b) > 0:
    print("Positive")
else:
    print("Negative")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if (a+b) == 0:
    print("Zero")
elif (a+b) > 0 or (a-b)%2==0:
    print("Positive")
else:
    print("Negative")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if (a+b) == 0 or (b+a) == 0:
    print("Zero")
elif (a+b) > 0:
    print("Positive")
else:
    print("Negative")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if (a+b) == 0 or (b+a) == 0:
    print("Zero")
elif (a > 0 and b > 0) or (a > b and a > 0) or (b > a and b > 0):
    print("Positive")
elif (a < 0 and b < 0) or (a > b and a < 0) or (b > a and b < 0):
    print("Negative")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if (a > 0 and b > 0) or (a > b and a > 0) or (b > a and b > 0):
    print("Positive")
elif (a-b) == 0 or (b-a) == 0:
    print("Zero")
elif (a < 0 and b < 0) or (a > b and a < 0) or (b > a and b < 0):
    print("Negative")
print()

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
if a > 0:
  ans = "Positive"
elif b >= 0:
  ans = "Zero"
else:
  ans = "Negative"
print(ans)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a <= 0 <= b:
    print("Zero")
elif a > 0:
    print("Positive")
else:
    if (b - a) % 2 == 0:
        print("Positive")
    else:
        print("Negative")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a <= 0 <= b:
    print("Zero")
elif b < 0:
    print("Positive")
else:
    if (b - a) % 2 == 0:
        print("Positive")
    else:
        print("Negative")

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
num = (b-a)+1
if a > 0:
  print("a_Positive")
elif b < 0 and num%2==0:
  print("b_Positive")
elif b < 0 and num%2!=0:
  print("Negative")
elif a <= 0 and b >= 0:
  print("Zero")

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
num = (b-a)+1
if min(a,b) > 0:
  print("Positive")
elif max(a,b) < 0 and num%2!=0:
  print("Positive")
elif max(a,b) < 0 and num%2==0:
  print("Negative")
else:
  print("Zero")

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
if min(a,b) > 0:
  print("Positive")
elif max(a,b) < 0:
  print("Negative")
else:
  print("Zero")

Submission status: Wrong Answer

Solution code:
def mium():
  a, b = map(int, input().split())
  if a < 0 and b > 0:
    print("Negative")
  elif a == 0 or b == 0:
    print("Zero")
  else:
    print("Positive")
if __name__ == "__main__":
  mium()

Submission status: Wrong Answer

Solution code:
a,b = [int(i) for i in input().split()]
if a<=0 and 0<=b:
    print("Zero")
elif a>0:
    print("Positive")
else:
    if  (b-a)%2==0:
        print("Negative")
    else:
        print("Positivea")

Submission status: Wrong Answer

Solution code:
a,b = [int(i) for i in input().split()]
if a<=0 and 0<=b:
    print("Zero")
elif a>0:
    print("Positive")
else:
    print("Negative")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a > 0 and b > 0: # OK
    print("Positive") 
elif a < 0 and b < 0: # OK
    print("Negative")
elif a < 0 and b > 0: #OK
    print("Zero")
elif (a == 0 or b == 0): # OK
    print("Zero")
elif (a==b) and (a < 0 and b < 0): # OK
    print("Negative")
elif (a==b) and (a > 0 and b > 0): # OK
    print("Positive")
elif (b - a) % 2 == 0:
    print('Negative')
else:
    print('Positive')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a > 0 and b > 0:
    print("Positive") 
elif a < 0 and b < 0:
    print("Negative")
elif a < 0 and b > 0:
    print("Zero")
elif (a == 0 or b == 0):
    print("Zero")
elif (a==b) and (a < 0 and b < 0):
    print("Negative")
elif (a==b) and (a > 0 and b > 0):
    print("Positive")

Submission status: Wrong Answer

Solution code:
def solve():
    N, M = map(int, input().split())
    
    if N > 0:
        return 'Positive'
    elif N <= 0 and 0 <= M:
        return 'Zero'
    else:
        if -(N-M) % 2 == 0:
            return 'Positive'
        else:
            return 'Negative'
            
    return 0

print(solve())

Submission status: Wrong Answer

Solution code:
def solve():
    N, M = map(int, input().split())
    
    if N > 0:
        return 'Positive'
    elif N <= 0 <= M:
        return 'Zero'
    else:
        if N-M % 2 == 0:
            return 'Positive'
        else:
            return 'Negative'
            
    return 0

print(solve())

Submission status: Wrong Answer

Solution code:
N, M = map(int, input().split())

if N > 0:
    print('Positive')
elif N <= 0 <= M:
    print('Zero')
elif M < 0:
    if N-M % 2 == 0:
        print('Positive')
    else:
        print('Negative')

Submission status: Wrong Answer

Solution code:
N, M = map(int, input().split())

if N > 0:
    print('Positive')
elif N <= 0 <= M:
    print('Zero')
elif M < 0:
    if N-M % 2:
        print('Negative')
    else:
        print('Positive')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())


if a < 0 and b > 0:
    print("Zero")

elif a > 0:
    print("Positive")

elif b < 0 and a < 0:
    if b - a + 1 % 2 != 0:
        print("Negative")
    else:
        print("Positive")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())


if a < 0 and b > 0:
    print("Zero")

elif a > 0:
    print("Positive")

elif b < 0 and a < 0:
    if abs(a) + abs(b) % 2 == 0:
        print("Negative")
    else:
        print("Positive")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())


if a < 0 and b > 0:
    print("Zero")
elif a > 0:
    print("Positive")
elif b == -1:
    if abs(a) % 2 == 0:
        print("Positive")
    else:
        print("Negative")
elif b < 0 and a < 0:
    if abs(a) + abs(b) % 2 == 0:
        print("Negative")
    else:
        print("Positive")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a == 0 or b == 0:
  print("Zero")
elif b < 0 and 0 < a:
  print("Zero")
else:
  if b < 0:
    print("Negative" if 0-b & 1 else "Positive")
  else:
    print("Positive")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if a > 0:
  print("Positive")
elif (a == 0) or (a < 0 and b >= 0):
  print("Zero")
else:
  if (b - a) % 2 == 0:
    print("NEgative")
  else:
    print("Positive")

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A == 0 or B == 0:
	print("Zero")
	exit()
if A * B < 0:
	print("Zero")
	exit()
if A > 0 and B > 0:
	print("Positive")
else:
	print("Negative")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if a > 0:
    result = "positive"
elif a == 0:
    result = "zero"
else:
    if b >= 0:
        result = "zero"
    else:
        c = b - a
        if c % 2 == 0:
            result = "negative"
        else:
            result = "positive"
            
print(result)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if a * b <= 0:
    print(0)
elif a > 0:
    print("Positive")
else:
    if (b - a) % 2 == 0:
        print("Negative")
    else:
        print("Positive")

Submission status: Wrong Answer

Solution code:
from sys import stdin

a,b = [int(x) for x in stdin.readline().rstrip().split()]

if b < 0:
    print("Negative")
elif a<= 0 <= b:
    print("Zero")
else:
    print("Positive")

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())

if a>0 and b>0:
    print('Positive')
elif a<0:
    if b<0 and a%2==0:
        print('Positive')
    elif b<0 and a%2==1:
        print('Negative')
    elif b>0:
        print('Zero')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a == 0 or b == 0:
  print("Zero")
else:
  if 0<a<=b<=10**9+1:
    print("Positive")
  elif a<=0<=b<=10**9+1:
    print("Zero")
  elif a<=b<0:
    if (b-a+1%2)==0:
      print("Positive")
    else:
      print("Negative")

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())

if a*b <= 0:
    print("Zero")
else:
    if a > 0 and b > 0:
        print("Positive")
    else:
        print("Negative")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a>0:
  Answer = 'Positive'
elif b >= 0:
  Answer = 'Zero'
elif (b-a)%2 ==0:
  Answer = 'Negative'
else:
  Answer = 'positive'
print(Answer)

Submission status: Wrong Answer

Solution code:
def examA():
    a, b = LI()
    if a>0:
        ans = "Positive"
        print(ans)
        return
    if b>=0:
        ans = "Zero"
    else:
        judge = b-a
        if judge%2==1:
            ans = "Posotive"
        else:
            ans = "Negative"
    print(ans)
    return

import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

if __name__ == '__main__':
    examA()

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a*b<=0:
    print("Zero")
if a>0 and b>0 or (a-b)%2==1:
    print("Positive")
else:
    print("Negative")

Submission status: Wrong Answer

Solution code:
A,B =  map(int,input().split())
b = []
count = 0
if B < 0:
  A = A + B
if A <= 0 and B >= 0:
  print('Zero')
elif A<0 and A % 2 == 1:
  print('Negative')
else:
  print('Positive')

Submission status: Wrong Answer

Solution code:
A,B =  map(int,input().split())
b = []
count = 0
if B < 0:
  A = A - B
if A <= 0 and B >= 0:
  print('Zero')
elif A<0 and A % 2 == 1:
  print('Negative')
else:
  print('Positive')

Submission status: Wrong Answer

Solution code:
A,B =  map(int,input().split())
b = []
count = 0
if A <= 0 and B >= 0:
  print('Zero')
elif A<0 and A % 2 == 1:
  print('Negative')
else:
  print('Positive')

Submission status: Wrong Answer

Solution code:
import sys
import os
if sys.platform=="darwin":
	base = os.path.dirname(os.path.abspath(__file__))
	name = os.path.normpath(os.path.join(base, '../Documents/input.txt'))
	#print(name)
	sys.stdin = open(name)

a,b = map(int,input().split())

ans = 1

for i in range(a,b+1):
	print(i)
	ans = i*ans

if ans > 0:
	print("Positive")
elif ans == 0:
	print("Zero")
else:
	print("Negative")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a > 0:
    print('Positive')
elif a <= 0 and b >= 0:
    print('Zero')
else:
    if (b-a) % 2 == 0:
        print('Negative')
    else:
        print('Postive')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if a < 0 and b < 0:
    if b - a + 1 % 2 == 0:
        print('Positive')
    else:
        print('Negative')
elif (a < 0 and b > 0) or (a == 0 or b == 0):
    print('Zero')
else:
    print('Positive')

Submission status: Wrong Answer

Solution code:
a=list(map(int,input().split()))
z=a.count(0)
n=sum([1 for i in a if i<0])%2
if z>0:
  print('Zero')
elif n==0:
  print("Positive")
else:
  print("Negative")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a <= 0 and b >= 0:
    print(0)
else:
    if a > 0 and b > 0:
        print("Positive")
    else:
        c = abs(b - a + 1)
        
        if c % 2 == 0:
            print("Positive")
        else:
            print("Negative")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a > 0 and b > 0:
    print("Positive")

elif a < 0 and b < 0:
    if abs(a) - abs(b) % 2 == 0:
        print("Negative")
    else:
        print("Positive")

else:
    print("Zero")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a > 0 and b > 0:
    print("Positive")
elif a < 0 and b < 0:
    print("Negative")
else:
    print("Zero")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if(b < 0):
   print('Negative')
elif(a >0):
   print('Positive')
else:
   print('Zero')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if a > 0:
    print("Positive")
elif b < 0:
    print("Negative")
elif a <= 0 and b >= 0:
    print("Zero")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
def main():
    a, b = map(int, input().split())
    if a > 0:
        print('Positive')
    elif b >= 0:
        print(0)
    else:
        if (b-a+1) % 2 == 0:
            print('Positive')
        else:
            print('Negative')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
# coding: utf-8
def main():
    a, b = map(int, input().split())
    l = range(a, b+1)
    if 0 in l:
        print(0)
    else:
        count = 0
        for i in l:
            if i < 0:
                count += 1
            else:
                break
        else:
            if count % 2 == 0:
                print('Positive')
            else:
                print('Negative')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a <= 0 and b > 0:
  print('Zero')
elif a < 0 and b > 0 and abs(a - b) % 2 == 0:
  print('Negative')
else:
  print('Positive')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a <= 0 and b > 0:
  print('Zero')
elif a < 0 and b > 0:
  print('Negative')
elif b < 0 or a > 0:
  print('Positive')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if a>0:
    print("Positive")
elif a<=0<=b:
    print("Zero")
else:
    if (a-b)%2==0:
        print("Positive")
    else:
        print("Negative")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if a>0:
    print("Positive")
elif a<=0<=b:
    print("Zero")
else:
    if a%2==0:
        print("Positive")
    else:
        print("Negative")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if a>0:
    print("Positive")
elif b<0:
    print("Negative")
elif a<=0<=b:
    print("Zero")
else:
    if a%2==0:
        print("Positive")
    else:
        print("Negative")

Submission status: Wrong Answer

Solution code:
I=lambda:list(map(int,input().split()))
a=I()
if a[0]>0:
    print("Positive")

else:
    if a[0]<=0 and a[1]>=0 :
        print("Zero")
    if a[0]<0 and a[1]<0:
        d=a[1]-a[1]
        if d%2==0:
            print("Negative")
        else:
            print("Positive")

Submission status: Wrong Answer

Solution code:
I=lambda:list(map(int,input().split()))
a=I()
if a[0]>=0:
    print("Positive")
else:
    if a[0]<=0 and a[1]>=0 :
        print("Zero")
    if a[0]<0 and a[1]<0:
        d=a[1]-a[1]
        if d%2==0:
            print("Negative")
        else:
            print("Positive")

Submission status: Wrong Answer

Solution code:
I=lambda:list(map(int,input().split()))
a=I()
if a[0]>=0:
    print("Positive")
elif a[0]<0 and a[1]>=0:
    print("Zero")
elif a[0]<0 and a[1]<0:
    if abs(a[0] - a[1])+1%2==0:
        print("Positive")
    else:
        print("Negative")

Submission status: Wrong Answer

Solution code:
I=lambda:list(map(int,input().split()))
a=I()
if a[0]>=0:
    print("Positive")
elif a[0]<0 and a[1]>=0:
    if abs(a[0])%2==0:
        print("Positive")
    else:
        print("Negative")
else:
    if abs(a[0] - a[1])+1%2==0:
        print("Positive")
    else:
        print("Negative")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if(a<0<b):print(0)
elif(a>0):print("Positive")
else:
    if((b-a)%2==0):print("Negative")
    else :print("Positive")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

res = a*b

if res > 0:
    print("Positive")
elif res < 0:
    print("Negative")
else:
    print("Zero")

Submission status: Wrong Answer

Solution code:
import sys
a,b = map(int,input().split())
if a*b >0:
    print('Positive')
    sys.exit()
if b >= 0:
    print('Zero')
    sys.exit()
minus_count = 0
for i in range(a,b+1):
    if i < 0:
        minus_count += 1
if minus_count%2 == 1:
    print('Negative')
else:
    print('Positive')

Submission status: Wrong Answer

Solution code:
import sys,os,random
a,b=map(int,input().split())
if a<=0<=b:print("Zero")
elif max(0,-a)&1:print("Negative")
else:print("Positive")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
lst = []
for i in range(a,b+1):
  lst.append(i)
if a == 0 or b == 0:
  print(0) 
elif a == b:
  print("Positive")
elif a < 0 < b :
  print(0)
elif a > 0 :
  print("Positive")
elif b < 0 :
  if len(lst) % 2 == 0:
    print("Positive")
  else:
    print("Negative")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
lst = []
for i in range(a,b+1):
  lst.append(i)
num = len(lst)

if a == 0 or b == 0:
  print(0)
  
elif a < 0 :
  if b > 0 :
    print(0)
    
elif a > 0 :
  print("Positive")
  
elif b < 0 :
  if len(lst) % 2 == 0:
    print("Positive")
  
  else:
    print("Negative")

Submission status: Wrong Answer

Solution code:
import sys
read = sys.stdin.read

# 「番号 n以下 の辺だけを貼ったときの連結成分の大きさが z 以上」を満たす最小のn
# 並列二分探索

data = [int(x) for x in read().split()]

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a <= 0 or b >= 0:
    print('Zero')
elif a > 0:
    print('Positive')
elif b < 0:
    if (b - a + 1) % 2 == 0:
        print('Positive')
    else:
         print('Negative')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a <= 0 or b >= 0:
    print('Zero')
elif a > 0:
    print('Positive')
elif b < 0:
    print('Negative')

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a<=0 and b>=0:
    print('Zero')
elif a>0 and b>0:
    print('Positive')
elif a<0 and b<0:
    if ((-a)-(-b)+1)/2==0:
        print("Positive")
    else:
        print("Negative")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a<=0 and b>=0:
    print(0)
elif a>0 and b>0:
    print('Positive')
elif a<0 and b<0:
    N=1
    for i in range(a,b+1,1):
        N=N*i
    if N>0:
        print("Positive")
    else:
        print("Negative")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a>0 and b>0:
  print('Positive')
elif a*b <0 or a*b ==0:
  print('Zero')
else:
  print('Negative' if (a-b +1)&2 !=0 else 'Positive')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split(" "))
if a > 0:
    if b >= 0:
        print("Positive")
elif a<=0:
    if b <0:
        if b-a+1%2==2:
            print("Positive")
        else:
            print("Negative")
else:
    print("Zero")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split(" "))
if a > 0:
    if b > 0:
        print("Positive")
    else:
        print("Zero")
else:
    if b > 0:
        print("Zero")
    elif b-a+1%2==2:
        print("Posittive")
    else:
        print("Negative")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split(" "))
if a > 0:
    if b > 0:
        print("Positive")
    else:
        print("Zero")
else:
    if b > 0:
        print("Zero")
    else:
        print("Negative")

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
if a > 0 and b > 0:
    print('Positive')
if a > 0 and b < 0:
    print('Negative')
if a < 0 and b > 0:
    print('Negative')
if a < 0 and b < 0:
    if (b-a) % 2 == 0:
        print('Negative')
    else:
        print('Positive')

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if (a>0 and b>0) or (a<0 and b<0\
	and (b-a)%2!=0):
	print("Positive")
elif a==0 or b==0:
	print("Zero")
else:
	print("Negative")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if (a>0 and b>0) or (a<0 and b<0):
	print("Positive")
elif a==0 or b==0:
	print("Zero")
else:
	print("Negative")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a*b<=0:print("Zero")
elif b<0 and (a-b)%2==1:print("Negative")
else:print("Positive")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().strip().split())
num=1
for i in range(a,b):
    num*=i
if num>0:
    print("Positive")
elif num<0:
    print("Negative")
else:
    print("Zero")

Submission status: Wrong Answer

Solution code:
import logging

logging.basicConfig(level=logging.INFO, format="%(message)s")
#logging.disable(logging.CRITICAL)

def main():
    a, b = map(int, input().split())
    logging.info("Hello!")

    if a * b < 0:
        print("zero")
    elif a > 0:
        print("Positive")
    else:
        if (b - a + 1) % 2 == 1:
            print("Negative")
        else:
            print("Positive")
            

    
    
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split()) # 横に2個

if A <= 0 and 0 <= B:
    ans = 'Zero'
elif A > 0:
    ans = 'Positive'
elif B - A % 2 == 0:
    ans = 'Negative'
else:
    ans = 'Positive'

print(ans)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a <= 0 and b >= 0:
  print("Zero")
elif a > 0 and b > 0:
  print("Positive")
elif a < 0 and b > 0 and abs(0-a) % 2 == 0:
  print("Positive")
elif a < 0 and b < 0 and abs(0-a) % 2 == 0:
  print("Positive")
else:
  print("Negative")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a <= 0 and b >= 0:
  print("Zero")
elif a > 0 and b > 0:
  print("Positive")
elif a < 0 and b > 0 and abs(0-a) % 2 == 0:
  print("Positive")
else:
  print("Negative")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if (a==0 or b==0) or (a<0 and b>0):
    print("Zero")

if a>0 and b>0:
    print("positive")

if a<0 and b<0:
    if (abs(abs(a)-abs(b))+1)%2 == 0:
        print("Positive")
    else:
        print("Negative")

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a <= 0 and b >= 0:
  print('zero')

if a > 0:
  print('positive')
  
if b < 0:
  if (a - b + 1) % 2 == 0:
    print('positive')
  else:
    print('negative')

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
if a<= 0 <=b:
   print("Zero")
elif a > 0:
    print("Positive")
elif (b-a)%2 == 0:
    print("Negative")
else:
    ("Positive")

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
a=int(a)
b=int(b)
if a<= 0 <=b:
   print("Zero")
elif a > 0:
    print("Positive")
elif (b-a)%2 == 0:
    print("Negative")
else:
    ("Positive")

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
a=int(a)
b=int(b)
if a<=0<=b:
   print("Zero")
elif a>0:
    print("Positive")
elif (b-a)%2==0:
    print("Negative")
else:("Positive")

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
a=int(a)
b=int(b)
if a<=0<=b:
   print("Zero")
elif a>0:
    print("Positive")
elif (b-a)%2==0:
    print('Negative')
else:("Positive")

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
a=int(a)
b=int(b)
if a<=0<=b:
   print("Zero")
elif a>0:
    print("Positive")
elif a==b:
    print("Positive")
elif (b-a)%2==0:
    print('Negative')
else:("Positive")

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
a=int(a)
b=int(b)
if a>0:
    print("Positive")
elif a<=0<=b:
   print("Zero")
elif a==b:
    print("Positive")
elif (b-a)%2==0:
    print('Negative')
else:("Positive")

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
a=int(a)
b=int(b)
if a>0:
    print("Positive")
elif a ==0 or b==0:
   print("Zero")
elif a  <0 and b>0:
    print("Zero")
elif a==b:
    print("Positive")
elif (b-a)%2==0:
    print('Negative')
else:("Positive")

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
a=int(a)
b=int(b)
if a>0:
    print("Positive")
elif a ==0 or b==0:
   print("Zero")
elif a  <0 and b>0:
    print("Zero")
elif a==b:
    print("Positive")
elif (b-a)%2==0:
    print('Negative')
elif (b-a)%2==1:
    print("Positibe")

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
a=int(a)
b=int(b)
if a>0:
    print("Positive")
elif a ==0 or b==0:
   print("Zero")
elif a  <0 and b>0:
    print("Zero")
elif (b-a)%2==0:
    print('Negative')
else:
    print("Positibe")

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
a=int(a)
b=int(b)
if a>0:
    print("positive")
elif a ==0 or b==0:
   print(0)
elif a  <0 and b>0:
    print(0)
elif (b-a)%2==0:
    print('negative')
else:
    print("positibe")

Submission status: Wrong Answer

Solution code:
from fractions import gcd
import math
def inverse(a):
    return pow(a, mod - 2, mod)


def usearch(x, a):
    lft = 0
    rgt = len(a) + 1
    while rgt - lft > 1:
        mid = (rgt + lft) // 2
        if a[mid] <= x:
            lft = mid
        else:
            rgt = mid
    return lft



def main():
    a, b =map(int, input().split())
    if a <= 0 <= b:
        print(0)
        return
    if 0 < a:
        print('Positive')
        return
    if (min([b, -1]) - a) % 2 == 1:
        print('Positive')
        return
    print('Negative')
main()