TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: Snuke got an integer sequence of length N from his mother, as a birthday present. The i-th (1 ≦ i ≦ N) element of the sequence is a_i. The elements are pairwise distinct. He is sorting this sequence in increasing order. With supernatural power, he can perform the following two operations on the sequence in any order:    * Operation 1: choose 2 consecutive elements, then reverse the order of those elements.   * Operation 2: choose 3 consecutive elements, then reverse the order of those elements.  Snuke likes Operation 2, but not Operation 1. Find the minimum number of Operation 1 that he has to perform in order to sort the sequence in increasing order.

Submission attempts (in order):
N = int(input())
A = [0]*N
r = 0
for i in range(N):
    a = int(input())
    A[i] = (a, i)
A.sort()
cnt = 0
for i in range(N, 2):
    a, j = A[i]
    cnt += j & 1
print(cnt)





def main():
    import sys
    input = sys.stdin.readline
    N = int(input())
    A = [0]*N
    r = 0
    for i in range(N):
        a = int(input())
        A[i] = (a, i)
    A.sort()
    cnt = 0
    for i in range(0, N, 2):
        a, j = A[i]
        cnt += j & 1
    print(cnt)

main()


Verdicts: Runtime Error

Accepted
Problem: Snuke got an integer sequence of length N from his mother, as a birthday present. The i-th (1 ≦ i ≦ N) element of the sequence is a_i. The elements are pairwise distinct. He is sorting this sequence in increasing order. With supernatural power, he can perform the following two operations on the sequence in any order:    * Operation 1: choose 2 consecutive elements, then reverse the order of those elements.   * Operation 2: choose 3 consecutive elements, then reverse the order of those elements.  Snuke likes Operation 2, but not Operation 1. Find the minimum number of Operation 1 that he has to perform in order to sort the sequence in increasing order.

Submission attempts (in order):
n = int(input())
s = [int(input()) for _ in range(n)]
j = sorted(s)
ans = len(set(s[::2]) ^ set(j[::2]))
print(ans)

n = int(input())
s = [int(input()) for _ in range(n)]
j = sorted(s)
ans = len(set(s[::2]) ^ set(j[::2])) // 2
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: Snuke got an integer sequence of length N from his mother, as a birthday present. The i-th (1 ≦ i ≦ N) element of the sequence is a_i. The elements are pairwise distinct. He is sorting this sequence in increasing order. With supernatural power, he can perform the following two operations on the sequence in any order:    * Operation 1: choose 2 consecutive elements, then reverse the order of those elements.   * Operation 2: choose 3 consecutive elements, then reverse the order of those elements.  Snuke likes Operation 2, but not Operation 1. Find the minimum number of Operation 1 that he has to perform in order to sort the sequence in increasing order.

Submission attempts (in order):
n=int(input())
a =[int(input()) for i in range(n)]
res = [[a[i],i]for i in range(n)]
res.sort()
ret =0
for i in range(n):
    if res[i][1]%2 != i%2:ret+=1
print(ret)

n=int(input())
a =[int(input()) for i in range(n)]
res = [[a[i],i]for i in range(n)]
res.sort()
ret =0
for i in range(n):
    if res[i][1]%2 != i%2:ret+=1
print(ret/2)


n=int(input())
a =[int(input()) for i in range(n)]
res = [[a[i],i]for i in range(n)]
res.sort()
ret =0
for i in range(n):
    if res[i][1]%2 != i%2:ret+=1
print(ret//2)


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Snuke got an integer sequence of length N from his mother, as a birthday present. The i-th (1 ≦ i ≦ N) element of the sequence is a_i. The elements are pairwise distinct. He is sorting this sequence in increasing order. With supernatural power, he can perform the following two operations on the sequence in any order:    * Operation 1: choose 2 consecutive elements, then reverse the order of those elements.   * Operation 2: choose 3 consecutive elements, then reverse the order of those elements.  Snuke likes Operation 2, but not Operation 1. Find the minimum number of Operation 1 that he has to perform in order to sort the sequence in increasing order.

Submission attempts (in order):
import copy
n = int(input())

nums = []
for i in range(n):
  nums.append(int(input()))
  
taiou = {}
reprica = copy.copy(nums)
reprica.sort()
for i, r in enumerate(reprica):
  taiou[r] = i 
ans = 0
for i, num in enumerate(nums):
  if i%2 != taiou[num]%2:
    ans += 1
    
print(ans/2)
  
  



import copy

n = int(input())

nums = []
for i in range(n):
    nums.append(int(input()))

taiou = {}
reprica = copy.copy(nums)
reprica.sort()
for i, r in enumerate(reprica):
    taiou[r] = i
ans = 0
for i, num in enumerate(nums):
    if i % 2 != taiou[num] % 2:
        ans += 1

print(ans // 2)

Verdicts: Wrong Answer

Accepted
Problem: Snuke got positive integers s_1,...,s_N from his mother, as a birthday present. There may be duplicate elements.  He will circle some of these N integers. Since he dislikes cubic numbers, he wants to ensure that if both s_i and s_j (i ≠ j) are circled, the product s_is_j is _not_ cubic. For example, when s_1=1,s_2=1,s_3=2,s_4=4, it is not possible to circle both s_1 and s_2 at the same time. It is not possible to circle both s_3 and s_4 at the same time, either.  Find the maximum number of integers that Snuke can circle.

Submission attempts (in order):
import sys
from subprocess import Popen, PIPE
from itertools import groupby
from collections import Counter

def main():
    sys.stdin.readline()
    S = sys.stdin.read()
    T = []
    inv_dict = {}
    Factors = Popen("factor " + S, stdout=PIPE).communicate()[0].split(b"\n")
    for factors in Factors:
        factors = map(int, factors.split()[1:])
        t = 1
        t_inv = 1
        for f, group in groupby(factors):
            n = len(list(group)) % 3
            if n == 1:
                t *= f
            elif n == 2:
                t_inv *= f
        t, t_inv = t * t_inv * t_inv, t * t * t_inv
        T.append(t)
        inv_dict[t] = t_inv

    counter_T = Counter(T)
    ans = 0
    for t, t_cnt in counter_T.items():
        if t == 1:
            ans += 1
            continue
        t_inv = inv_dict[t]
        t_inv_cnt = counter_T[t_inv]
        if t_cnt > t_inv_cnt or (t_cnt == t_inv_cnt and t > t_inv):
            ans += t_cnt
    print(ans)

main()


import sys
from subprocess import Popen, PIPE
from itertools import groupby
from collections import Counter

def main():
    sys.stdin.readline()
    S = sys.stdin.read().split()
    T = []
    inv_dict = {}
    Factors = Popen(["factor"] + S, stdout=PIPE).communicate()[0].split(b"\n")
    for factors in Factors[:-1]:
        factors = map(int, factors.split()[1:])
        t = 1
        t_inv = 1
        for f, group in groupby(factors):
            n = len(list(group)) % 3
            if n == 1:
                t *= f
            elif n == 2:
                t_inv *= f
        t, t_inv = t * t_inv * t_inv, t * t * t_inv
        T.append(t)
        inv_dict[t] = t_inv

    counter_T = Counter(T)
    ans = 0
    for t, t_cnt in counter_T.items():
        if t == 1:
            ans += 1
            continue
        t_inv = inv_dict[t]
        t_inv_cnt = counter_T[t_inv]
        if t_cnt > t_inv_cnt or (t_cnt == t_inv_cnt and t > t_inv):
            ans += t_cnt
    print(ans)

main()


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
import sys
from math import factorial, fabs
a, b = map(int, input().split())
try:
    if factorial(b)/factorial(a)==0:
        print("Zero")
        sys.exit()
except:
    if 0 in range(a, b+1):
        print("Zero")
        sys.exit()       
    c=0
x=True
if (fabs(a)-fabs(b))%2==0 and (b<0):
    x=False
a, b= fabs(a), fabs(b)
fin=int(factorial(b)/factorial(a))
if fin==0 and factorial(b)/factorial(a)!=0:
    fin=int(factorial(a)/factorial(b))
if x==False:
    fin*=-1
if fin==0:
    ans="Zero"
elif fin<0:
    ans="Negative"
else:
    ans="Positive"
print(ans)

from math import fabs
a, b = map(int, input().split())
if a <= 0 and 0 <= b:
    print("Zero")
else:
    if a > 0:
        print("Positive")
    else:
        if (fabs(b - a) + 1) % 2 == 0:
            print("Positive")
        else:
            print("Negative") 

Verdicts: Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input())
if a*b < 0:
  print("Zero")
elif a > 0:
  print("Positive")
else:
  if (b-a)%2:
    print("Positive")
  else:
    print("Negative")
  

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


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a,b=map(int,input())
if(a>0):print("Positive")
elif(a==0):print("Zero")
else:
  if(b>=0):print("Zero")
  else:
    if((b-a+1)%2==0):print("Positive")
    else:print("Negative")

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


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
A,B = map(int,input().split())
if A>0 and (B-A+1)%2==0:
    print("Positive")
elif A <= 0 <=B:
    print("Zero")
else:
    print("Negative")

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


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):

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

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



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

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


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import sys
read = sys.stdin.read




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


import os
os.read(0, 10**8).split()

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

def f(a, b):
    if a <= 0 <= b:
        return 0
    if a > 0:
        return 1
    b = min(b, -1)
    n = b - a + 1
    return (-1) ** n

words = ['Zero', 'Positive', 'Negative']
print(words[f(a, b)])

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input().split())

if a > 0:
    print('Positive')
else if b >= 0:
    print('Zero')
else if (b-a) % 2 == 1:
    print('Positive')
else:
    print('Negative')

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

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
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')

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

print(solve())


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a,b=map(int,input().split())
a=min(1,a)
b=min(1,b)
z=aa.count(0)
if b==1 and a<=0:
  print('Zero')
elif b==0:
  print('Zero')
elif (b-a)%2==0 and b<0:
  print("Negative")
else:
  print("Positive")

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a,b = map(int,input())                    

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


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

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


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
# coding: utf-8

from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import math
import string
import itertools
import fractions
import heapq
import collections
import re
import array
import bisect

def eat_all(al):
    for i in range(len(al)):
        al[i] -= 1
    while True:
        if al[0] == 0:
            al.pop(0)
        else:
            break
    return al

def step(turn, a_list):
    if len(a_list) == 1:
        if a_list[0] % 2 == 0:
            return turn
        else:
            return (not turn)
    if a_list[-1] % 2 != 0:
        a_list.pop()
        return step(not turn, a_list)
    else:
        a_list = eat_all(a_list)
        a_list.pop()
        if len(a_list) == 0:
            return turn
        return step(turn, a_list)

n = int(input())
a_list = [None] * n
inputs = input().split(" ")
for i in range(n):
    a_list[i] = int(inputs[i])
a_list.sort()
win = step(1, a_list)
if win == 1:
    print("First")
else:
    print("Second")



# coding: utf-8

from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import math
import string
import itertools
import fractions
import heapq
import collections
import re
import array
import bisect


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

p = "Positive"
n = "Negative"
z = "Zero"

if a > 0:
    print(p)
elif a == 0 or b == 0:
        print(z)
else:
    # a < 0
    if b >= 0:
        print(z)
    else:
        # a < 0, b < 0
        if (b - a) % 2 == 0:
            print(n)
        else:
            print(p)


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
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")

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
from statistics import median
#import collections

from fractions import gcd
from itertools import combinations 
from collections import deque
from collections import defaultdict
import bisect
#
#    d = m - k[i] - k[j]

#
#
#

#
#

import sys
sys.setrecursionlimit(10000000)
mod = 10**9 + 7

def readInts():
  return list(map(int,input().split()))
def main():
    a,b = readInts()
    if a <= 0 and 0 <= b:
        print("Zero")
        exit()
    if 1 <= a <= b:
        print("Positive")
    else:
        print("Negative")

if __name__ == '__main__':
  main()


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


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b = list(map(int,input().split()))
if( a > b ):
    a,b = b,a
if a > 0 and b > 0:
    print("Positive")
elif a <= 0 and b >= 0:
    print("Zero")
else:
    if (abs(a) - abs(b)) % 2 == 0:
        print("Negative")
    else:
        print("Pisitive")-1 1

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
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:
    if (b - a + 1) % 2:
        print('Negative')
    else:
        print('Positive')
        

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 (b - a + 1) % 2:
        print('Negative')
    else:
        print('Positive')
        

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 (b - a + 1) % 2:
        print('Negative')
    else:
        print('Positive')
        

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input().split())
c = 1
for i in range(a, b+1):
    c *= i
if c>0:
    print("Positive")
if c<0:
    print("Negative")
else:
    print("Zero")

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
A,B =  map(int,input().split())
b = []
Zeroflag = False
count = 0
for i in range(A,B+1,1):
  b.append(i)
if 0 in b:
  zeroflag = True
for i in b:
  if i < 0:
    count += 1
if zeroflag:
  print('Zero')
elif count %2 == 0:
  print('Positive')
else:
  print('Negative')
  

A,B =  map(int,input().split())
b = []
Zeroflag = False
count = 0
for i in range(A,B+1,1):
  b.append(i)
if 0 in b:
  zeroflag = True
for i in b:
  if i < 0:
    count += 1
if zeroflag:
  print('Zero')
elif count %2 == 0:
  print('Positive')
else:
  print('Negative')
  

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a,b=map(int,input().split())
if a*b=0:print("Zero")
elif 0<a:print("Positive")
else:
  if -a%2==0:print("Positive")
  else:print("Negative")

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a,b=int(input().split())
if b < 0:
    if (b-a+1) % 2 == 0:
        ans = 'Positive'
    elif (b-a+1) % 2 == 1:
        ans = 'Negative'
elif a > 0:
 ans='Positive'
else
 ans='Zeros'
  
print(ans)

a,b=int(input().split())
if a*(a+1)*b==0:
  print('Zero')
if a*(a+1)*b<0:
  print('Negative')
if a*(a+1)*b>0:
  print('Positive')

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

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

a,b=int(input().split())
if a*b==0:
  print('Zero')
if a*b<0:
  print('Negative')
if a*b>0:
  print('Positive')

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

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
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)

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')

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('Negative')
else:
  print('Positive')

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a=list(map(int,input().split()))
b=1
for i in range(a[0],a[1]+1):
  b*=i
if b>0:
  print('Positive')
elif b<0:
  print('Negative')
elif b=0:
  print('Zero')

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a,b = map(int, input().split())
mafs = 0 
if a < 1:
  print(0)
else:
  for i in range(a, b+1):
    mafs *= i
    
print(mafs)

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b = map(int,input().split())
if a<=0 and b>=0:
  print("Zero")
elif a>0 and b>0:
  print("Pisitive")
elif a<0 and b<0:
  t = b-a
  if t%2==0:
    print("Negative")
  else:
    print("Positive")

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:
  t = b-a
  if t%2==0:
    print("Negative")
  else:
    print("Positive")

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
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")

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")

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a, b = input().split()
a, b = int(a), int(b)

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

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


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

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


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

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


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input().split())
nega_cnt = 0
is_zero = False
for x in range(a, b+1):
        if x < 0:
                nega_cnt += 1

        elif x == 0:
                print("Zero")
                is_zero = True

if not is_zero:

        if nega_cnt % 2 == 1:
                print("Negative")
        else:
                print("Positive")
~                                                                                                  ~                                                                                                  ~                                                                                                  ~                                                                                                  ~                                                                                                  ~                                                                                                  ~                                                                                                  ~                                                                                                  ~                                                                                                  ~                                                                

a, b = map(int, input().split())
nega_cnt = 0
is_zero = False
if a * b < 0:
        print("Zero")
        is_zero = True
elif b < 0 and (a-b) % 2 == 0:
        print("Negative")
else:
        print("Positive")

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
#-*-coding:utf-8-*-
import sys
input=sys.stdin.readline
import itertools

def main():
    a,b = map(int,input().split())
    datas = list(range(a,b+1))
    answer=1
    if a == 0 or b ==0 or (a<0 and b>0):
        print("Zero")
        exit()
    else:
        if abs(a-b)%2!=0:
            print("Positive")
        else:
            print("Negative")

if __name__=="__main__":
    main()

#-*-coding:utf-8-*-
import sys
input=sys.stdin.readline

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

if __name__=="__main__":
    main()

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a, b = map(int, input().split())
n = 1
for i in range(min(a, b), max(a, b)+1):
  n = n * i
if n == 0:
  print(0)
elif n > 0:
  print('Zero')
else:
  print('Negative')

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import sys
input = sys.stdin.buffer.readline

n, m = map(int, input().split())
b = [False] * (n + 1)
c = [1] * (n + 1)
for i in range(m):
    x, y = map(int, input().split())
    c[x] -= 1
    c[y] += 1
    if b[x]:
        b[y] = True
    if c[x] == 0:
        b[x] = False
print(sum(b))

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

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a,b=map(int,input().split())
l=range(a,b+1)
ans=1
for i in range(len(l)):
  ans=ans*l[i]
print(ans)

a,b=map(int,input().split())
l=range(a,b+1)
ans=1
for i in rang(len(l)):
  ans=ans*l[i]
print(ans)

a,b=map(int,input().split())
l=range(a,b+1)
ans=1
for i in range(len(l)):
  ans=ans*l[i]
if ans>0:
  print("Positive")
if ans<0:
  print("Negative")
else:
  print("Zero")

a,b=list(map(int,input().split()))
l=range(a,b+1)
ans=1
for i in range(len(l)):
  ans=ans*l[i]
print(ans)


a,b=map(int,input().split())
l=range(a,b+1)
ans=1
for i in range(len(l)):
  ans=ans*l[i]
if ans>0:
  print("Positive")
elif ans<0:
  print("Negative")
else:
  print("Zero")
print(ans)

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

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
s = input().split()
a=int(s[0])*int(s[1])
if a==0 :
    print("Zero")
if a<0 :
    print("Positive")
if a>0 :
    print("Negative")


A,B = map(int,input().split())
if A>0 and (B-A+1)%2==0:
    print("Positive")
elif A <= 0 <=B:
    print("Zero")
else:
    print("Negative")


a,b = map(int,input().split())
if(a>b):
    t=a
    a=b
    b=t
ans=1
for i in range(a,b):
    ans*=i
if(ans>0):
    print("Positive\n")
elif(ans<0):
    print("Negative\n")
else:
    print("Zero\n")

n,m=map(int,input().split())
if ((n<0 and m>0) or n==0 or m==0):
    print("Zero")
if (n>0 and m>0):
    print('Positive')
if (m<0):
    if ((m-n)%2==0):
        print("Negative")
    else:
        print("Positive")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
# 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()

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


if __name__ == '__main__':
    main()

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b=map(int,input().split())
if ab<=0:
  print('Zero')
elif a>0:
  print('Positive')
elif b<0:
  if (b-a+1)%2==0:
    print('Positive')
  else:
    print('Negative')

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a,b=map(int,input().split())
ans=[]
if(a*b<=0):
 ans='zero'
elif(b<0):
 if(((a-b)%2)==0):
  ans='negative'
 else:
  ans='positive'
else:
  ans='positive'
print(ans)

a,b=map(int,input().split())
ans=[]
if(a*b<=0):
 ans='Zero'
elif(b<0):
 if(((a-b)%2)==0):
  ans='Negative'
 else:
  ans='Positive'
else:
  ans='Positive'
print(ans)
  

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import sys

def main():
    a = int(sys.argv[1])
    b = int(sys.argv[2])

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

    temp = 1
    for i in range(a, b+1):
        temp *= i
    else:
        if temp > 0:
            print("Positive")
        else:
            print("Negative")


if __name__ == '__main__':
    main()


import sys

def main():
    a = int(sys.argv[1])
    b = int(sys.argv[2])

    temp = 1
    for i in range(a, b+1):
        temp *= i
    else:
        if temp == 0:
            print("Zero")
        elif temp > 0:
            print("Positive")
        else:
            print("Negative")


if __name__ == '__main__':
    main()


import sys

def main():
    l = input().split()
    a = int(l[0])
    b = int(l[1])

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

if __name__ == '__main__':
    main()


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a,b=[int(i) fro i in input().split()]
if 0<a and 0<b:
  print("Positive")
elif a*b<=0:
  print("Zero")
elif (b-a)%2==1:
  print("Positive")
else:
  print("Negative")

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
def main():
  t = input().split(" ")
  A = int(t[0])
  B = int(t[1])
  
  if b < 0:
    print("Negative")
  elif 0 < a:
    print("Positive")
  else:
    print("Zero")
    
main()

def main():
  t = input().split(" ")
  A = int(t[0])
  B = int(t[1])
  
  if B < 0:
    if (B - A) % 2 == 1
    	print("Positive")
    else :
    	print("Negative")
  elif 0 < A:
    print("Positive")
  else:
    print("Zero")
    
main()

def main():
  t = input().split(" ")
  A = int(t[0])
  B = int(t[1])
  
  if B < 0:
    if (B - A) % 2 == 1:
    	print("Positive")
    else :
    	print("Negative")
  elif 0 < A:
    print("Positive")
  else:
    print("Zero")
    
main()


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
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)

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)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
def resolve():
    '''
    code here
    '''
    a,b = [int(item) for item in input().split()]

    if a > 0:
        print('0Positive')
    else:
        if a <= 0 and 0 <= b:
            print('Zero')
        else:
            cnt = b - a + 1

            if cnt % 2 == 0:
                print('Posivite')
            else:
                print('Negative')

if __name__ == "__main__":
    resolve()


def resolve():
    '''
    code here
    '''
    a,b = [int(item) for item in input().split()]

    if a > 0:
        print('Positive')
    else:
        if a <= 0 and 0 <= b:
            print('Zero')
        else:
            cnt = b - a + 1

            if cnt % 2 == 0:
                print('Positive')
            else:
                print('Negative')

if __name__ == "__main__":
    resolve()


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b,c = 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()

a,b,c = 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")

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()

import sys
a,b = map(int,input().split())
c = 0
if (a+b) == 0:
    print("Zero")
    sys.exit()
elif 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("Positive")
else:
    print("Negative")

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a, b = list(map(int, input().split()))
if a = 0:
	print("Zero")
elif a > 0:
	print("Positive")
else:
	if b >= 0:
		print("Zero")
	else:
		if (b - a) % 2 == 0:
			print("Negative")
		else:
			print("Positive")


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


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a,b = map(int,input().split())
c= (b-a+1)*(a+b)//2
if c>0:
    print("Positive")
elif c=0:
    print("Zero")
else:
    print("Negative")

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

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**10
mod = 10**9 + 7


def f():
    a,b = list(map(int, input().split()))
    if a * b == 0 or (a < 0 && b > 0):
        return 'Zero'
    if b < 0 and (a+b) % 2 == 0
        return 'Negative'
    return 'Positive'

print(f())


import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**10
mod = 10**9 + 7


def f():
    a,b = list(map(int, input().split()))
    if a * b == 0 or (a < 0 && b > 0):
        return 'Zero'
    if b < 0 and (a+b) % 2 == 0:
        return 'Negative'
    return 'Positive'

print(f())


import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**10
mod = 10**9 + 7


def f():
    a,b = list(map(int, input().split()))
    if a * b == 0 or (a < 0 and b > 0):
        return 'Zero'
    if b < 0 and (a+b) % 2 == 0:
        return 'Negative'
    return 'Positive'

print(f())


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a, b = (int(x) for x in input().split())
if a > 0:
    print('Positive')
if a <= 0 and b >= 0:
    print('Zero')
else:
    if (b - a + 1) % 2 == 0:
        print('Positive')
    else:
        print('Negative')

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

def test(a, b):
    if a > 0:
        return 'Positive'
    if a <= 0 and b >= 0:
        return 'Zero'
    else:
        if (b - a + 1) % 2 == 0:
            return 'Positive'
        else:
            return 'Negative'

a, b = (int(x) for x in input().split())
if a > 0:
    print('Positive')
elif a <= 0 and b >= 0:
    print('Zero')
else:
    if (b - a + 1) % 2 == 0:
        print('Positive')
    else:
        print('Negative')

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
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')


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')


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b=map(int,input().split())
print(["Negative","Zero","Positive"][(a*b<=0)+(a>0 or (b<0 and (b-a)%2==1))])

a,b=map(int,input().split())
print(["Negative","Zero","Positive"][(a*b<=0)+2*(a>0 or (b<0 and (b-a)%2==1))])

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a, b = int(input())
if min(a,b) > 0:
  print("Positive")
elif max(a,b) < 0:
  print("Negative")
else:
  print("Zero")

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

a, b = map(int,input().split())
num = (b-a)+1
if min(a,b) > 0 or:
  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")

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")

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
# For taking integer inputs.
def inp():
    return(int(input()))


# For taking List inputs.
def inlist():
    return(list(map(int, input().split())))


# For taking string inputs. Actually it returns a List of Characters, instead of a string, which is easier to use in Python, because in Python, Strings are Immutable.
def instr():
    s = input()
    return(list(s[:len(s)]))


# For taking space seperated integer variable inputs.
def invr():
    return(map(int, input().split()))


a, b = invr()
res = "Negative"


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

print(res)


# For taking integer inputs.
def inp():
    return(int(input()))


# For taking List inputs.
def inlist():
    return(list(map(int, input().split())))


# For taking string inputs. Actually it returns a List of Characters, instead of a string, which is easier to use in Python, because in Python, Strings are Immutable.
def instr():
    s = input()
    return(list(s[:len(s)]))


# For taking space seperated integer variable inputs.
def invr():
    return(map(int, input().split()))


a, b = invr()
res = "Negative"

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

print(res)


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a, b=map(int, input().split())
if a==0 or b==0:
  print("Zero")
  exit()
if(a=<0 and b>=0):
  print("Zero")
  exit()
if a>0:
  print("Positive")
elif abs(b-a)%2==0:
  print("Negative")
else:
  print("Positive")
  
 

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

Verdicts: Runtime Error

Accepted