s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time int64 0 100 | memory stringlengths 4 6 | code_size int64 15 14.7k | code stringlengths 15 14.7k | problem_id stringlengths 6 6 | problem_description stringlengths 358 9.83k | input stringlengths 2 4.87k | output stringclasses 807
values | __index_level_0__ int64 1.1k 1.22M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s778192915 | p04033 | u426108351 | 1554160698 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 183 | a, b = map(int, input().split())
if a <= 0 and b >= 0:
print("Zero")
elif b < 0:
if (b - a) % 2 == 0:
print("Negative")
else:
print("Positive")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,917 |
s601724159 | p04033 | u363610900 | 1554088940 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 177 | a, b = map(int, input().split())
if a <= 0 <= b:
print('Zero')
elif 0 < a:
print('Positive')
elif (b - a + 1)%2 == 0:
print('Positive')
else:
print('Negative')
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,918 |
s312292032 | p04033 | u751488284 | 1554082872 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 181 | a, b = map(int, input().split())
if a > 0:
print("Positive")
elif a <= 0 and b >= 0:
print("Zero")
elif (b - a) % 2 == 0:
print("Negative")
else:
print("Positive")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,919 |
s677658285 | p04033 | u227082700 | 1553832855 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 144 | 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") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,920 |
s178371917 | p04033 | u989326345 | 1553466037 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 204 | a,b=map(int,input().split())
if a<=0 and b>=0:
print('Zero')
elif a>0 and b>0:
print('Positive')
else:
num=b-a+1
if num%2==1:
print('Negative')
else:
print('Positive')
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,921 |
s248945718 | p04033 | u802772880 | 1553387297 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 182 | a,b=map(int,input().split())
if 0<a<=b:
print('Positive')
elif a<=b<0:
if (b-a+1)%2==0:
print('Positive')
else:
print('Negative')
else:
print('Zero')
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,922 |
s211336831 | p04033 | u379692329 | 1553324484 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 182 | a, b = map(int, input().split())
if a <= 0 and b >= 0:
print("Zero")
elif a > 0 and b > 0:
print("Positive")
else:
print("Positive" if (b-a+1) % 2 == 0 else "Negative")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,923 |
s252658595 | p04033 | u721316601 | 1553199596 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 210 | a, b = list(map(int, input().split()))
if a > 0 and b > 0:
print('Positive')
elif a < 0 and b < 0:
if (a-b+1) % 2:
print('Negative')
else:
print('Positive')
else:
print('Zero')
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,924 |
s601229078 | p04033 | u518064858 | 1553054240 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 178 | a,b=map(int,input().split())
if 0<a:
print("Positive")
elif 0<=b:
print("Zero")
else:
if abs(a-b)%2==0:
print("Negative")
else:
print("Positive")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,925 |
s857581152 | p04033 | u782654209 | 1553051412 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 657 | #AGC002 A 23:04 -
'''
問題
整数a,bが与えられる。ただしa<=bである。
このときa,a+1,...,bをすべて掛け合わせた積が正か負か0かを判定せよ
ただしa,bは-10**9以上10**9以下かつa<=b
考察
a*b<=0なら答えは0
a*b>0かつa+b>0なら答えは正
a*b>0かつa+b<0なら...
aからbまで奇数個の数があれば答えは負
つまりa-bが偶数なら答えは負
aからbまで偶数個の数があれば答えは正
つまりa-bが奇数なら答えは正
'''
a,b=map(int,input().split(' '))
if a*b<=0:
print('Zero')
elif a... | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,926 |
s867920624 | p04033 | u280512618 | 1552936898 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 155 | a,b=map(int,input().split())
if a > 0:
print("Positive")
elif a * b <= 0:
print("Zero")
elif (b - a) & 1:
print("Positive")
else:
print("Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,927 |
s133428805 | p04033 | u619197965 | 1552858088 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 166 | a,b=[int(i) for i in input().split()]
if 0<a:
print("Positive")
elif a<=0<=b:
print("Zero")
elif (b-a)%2==0:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,928 |
s033024453 | p04033 | u118642796 | 1552822724 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 181 | 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")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,929 |
s978682527 | p04033 | u562935282 | 1552766107 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 243 | a, b = map(int, input().split())
ans = {
1: 'Positive',
-1: 'Negative',
0: 'Zero'
}
res = None
if a > 0:
res = 1
elif a * b < 0 or a == 0 or b == 0:
res = 0
else:
res = (-1) ** ((abs(a - b) + 1) % 2)
print(ans[res])
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,930 |
s046830639 | p04033 | u350049649 | 1552765615 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | a,b=map(int,input().split())
if a<=0<=b:
print('Zero')
elif b<0 and (b-a+1)%2==1:
print('Negative')
else:
print('Positive')
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,931 |
s444366689 | p04033 | u282228874 | 1552750752 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 156 | a,b = map(int,input().split())
if a <= 0 <= b:
print("Zero")
elif b < 0 and (b-a)%2 == 0:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,932 |
s743674584 | p04033 | u887207211 | 1552455654 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 174 | a, b = map(int,input().split())
ans = "Negative"
if(a <= 0 <= b):
ans = "Zero"
elif(a > 0):
ans = "Positive"
elif((abs(a)-abs(b)+1)%2 == 0):
ans = "Positive"
print(ans) | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,933 |
s610251522 | p04033 | u977389981 | 1552423520 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 252 | a, b = map(int, input().split())
if a <= 0 and b >= 0:
ans = 'Zero'
elif a < 0 and b < 0:
if (abs(a) - abs(b) + 1) % 2 == 0:
ans = 'Positive'
else:
ans = 'Negative'
elif a > 0 and b > 0:
ans = 'Positive'
print(ans) | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,934 |
s551745961 | p04033 | u158635223 | 1552165013 | Python | Python (3.4.3) | py | Accepted | 20 | 3188 | 224 | def main():
a,b=list(map(int,input().split()))
ans="Positive"
if(a*b<=0):
ans="Zero"
elif(b<0):
if((b-a)%2==0):
ans="Negative"
print(ans)
if __name__=="__main__":
main() | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,935 |
s356399488 | p04033 | u525796732 | 1551914657 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 167 | 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)
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,936 |
s019767906 | p04033 | u394721319 | 1551895751 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 181 | A, B = map(int, input().split())
if A*B > 0:
if A < 0:
if (B-A)%2 == 0:
print('Negative')
exit()
print('Positive')
exit()
print('Zero')
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,937 |
s105981289 | p04033 | u024809932 | 1551811420 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 141 | a, b = map(int, input().split());
if a*b <= 0: print("Zero")
elif a<0 and (min(-1, b)-a+1)%2 == 1: print("Negative");
else: print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,938 |
s031179712 | p04033 | u761989513 | 1551806539 | Python | Python (3.4.3) | py | Accepted | 22 | 3060 | 186 | import bisect
a, b = map(int, input().split())
n = range(a, b + 1)
m = bisect.bisect_left(n, 0)
if 0 in n:
print("Zero")
elif m % 2 == 0:
print("Positive")
else:
print("Negative")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,939 |
s629387263 | p04033 | u761989513 | 1551805071 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 282 | a, b = map(int, input().split())
if a <= 0 and b >= 0:
print("Zero")
elif a > 0:
print("Positive")
elif b < 0:
if (b - a) % 2:
print("Positive")
else:
print("Negative")
else:
if a % 2:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,940 |
s515204142 | p04033 | u852719059 | 1551755515 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 176 | a,b = map(int,input().split())
if a <= 0 <= b:
print("Zero")
elif 0 <= a:
print("Positive")
elif (a - b - 1) % 2 == 0:
print("Positive")
else:
print("Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,941 |
s676934527 | p04033 | u745087332 | 1551502168 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 641 | # coding:utf-8
import sys
from collections import defaultdict, deque
INF = float('inf')
MOD = 10 ** 9 + 7
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x) - 1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): re... | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,942 |
s662107549 | p04033 | u620480037 | 1551496276 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 212 | a,b=map(int,input().split())
if a==b:
print("Zero")
elif a>0:
print("Positive")
elif a<=0 and 0<=b:
print("Zero")
else:
if (b-a)%2==1:
print("Positive")
else:
print("Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,943 |
s868122138 | p04033 | u175034939 | 1551398099 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 212 | a,b = map(int,input().split())
if a <= 0 and b >= 0:
print('Zero')
elif a > 0 and b > 0:
print('Positive')
else:
if (abs(a-b)+1) % 2 == 1:
print('Negative')
else:
print('Positive') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,944 |
s282100657 | p04033 | u411858517 | 1551395046 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 233 | N, M = map(int, input().split())
if N * M <= 0:
print('Zero')
else:
if M < 0 and N < 0:
if (M - N)%2 == 1:
print('Positive')
else:
print('Negative')
else:
print('Positive') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,945 |
s479904919 | p04033 | u033524082 | 1551379722 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 164 | a,b=map(int,input().split())
if a<=0 and b>=0:
print("Zero")
elif a<0 and b<0:
print("Negative" if (a-b-1)%2==1 else "Positive")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,946 |
s048009411 | p04033 | u766684188 | 1551372155 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 144 | a,b=map(int,input().split())
if a*b<=0:
print('Zero')
elif a>0:
print('Positive')
else:
print('Positive' if (b-a)%2 else 'Negative') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,947 |
s975589966 | p04033 | u945418216 | 1551342542 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 214 | a,b = map(int,input().split())
if a*b<0:
print('Zero')
elif 0<a:
print('Positive')
else:
neg_range = min(-1,b) - a +1
if neg_range%2==0:
print('Positive')
else:
print('Negative') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,948 |
s554415906 | p04033 | u251123951 | 1551324920 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 157 | 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("Zero") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,949 |
s887636531 | p04033 | u343904763 | 1551301202 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 134 | a,b= map(int,input().split())
if a*b<0:
print("Zero")
elif a>0 or (b-a+1)%2==0 :
print("Positive")
else:
print("Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,950 |
s579787225 | p04033 | u729133443 | 1551260889 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 88 | a,b=map(int,input().split());print('NPeogsaittiivvee'[a>0 or(b-a)%2::2]*(a*b>0)or'Zero') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,951 |
s679585743 | p04033 | u652081898 | 1551247099 | Python | Python (3.4.3) | py | Accepted | 16 | 2940 | 146 | a, b = map(int, input().split())
if a*b <= 0:
print("Zero")
elif b < 0 and (b-a+1)%2 == 1:
print("Negative")
else:
print("Positive")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,952 |
s099684003 | p04033 | u794173881 | 1551239789 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 154 | a,b = map(int,input().split())
if a<=0 and 0<=b:
print("Zero")
elif a<0:
print("Positive" if abs(a-b)%2==1 else "Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,953 |
s837363296 | p04033 | u882209234 | 1551239498 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 212 | anss = ['Positive','Negative','Zero']
a,b = map(int,input().split())
if a*b <= 0: ans = 2
elif a > 0 and b > 0: ans = 0
elif a == b: ans = 0
else:
if (b-a) % 2 == 0: ans = 1
else: ans = 0
print(anss[ans]) | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,954 |
s419397195 | p04033 | u367130284 | 1551238273 | Python | Python (3.4.3) | py | Accepted | 19 | 3188 | 172 | a,b=map(int,input().split())
if a>0:
print("Positive")
elif 0 in range(a,b+1):
print("Zero")
else:
if (b-a)%2==0:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,955 |
s465430177 | p04033 | u543954314 | 1551151577 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 147 | a, b = map(int, input().split())
if a <= 0 <= b:
print("Zero")
elif b < 0 and (b-a) % 2 == 0:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,956 |
s638228007 | p04033 | u516272298 | 1550381334 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 203 | a,b = map(int,input().split())
if a <= 0 <= b:
print("Zero")
elif 0 < a < b:
print("Positive")
elif a < b < 0:
if (b-a) % 2 == 0:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,957 |
s645678332 | p04033 | u404676457 | 1550203645 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 208 | a, b = map(int, input().split())
if a > 0 and b > 0:
print('Positive')
elif a < 0 and b < 0:
if (a - b) % 2 == 1:
print('Positive')
else:
print('Negative')
else:
print('Zero')
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,958 |
s819383902 | p04033 | u540065900 | 1550182279 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 219 | G, B = map(int,input().split())
if G>0 and B>0:
print('Positive')
elif G<=0 and B>=0:
print('Zero')
elif G < 0 and B < 0:
if (B - G) % 2 == 0:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,959 |
s277446461 | p04033 | u740284863 | 1550088260 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 186 | a,b = map(int,input().split())
if a*b <=0:
print("Zero")
elif a > 0:
print("Positive")
else:
if (b-a)%2 == 0:
print('Negative')
else:
print('Positive')
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,960 |
s968226421 | p04033 | u950708010 | 1550006441 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 158 | a,b = (int(i) for i in input().split())
if a*b <=0:print('Zero')
elif a>0:print('Positive')
else:
if (b-a)%2 == 0:print('Negative')
else:print('Positive') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,961 |
s479162573 | p04033 | u052347048 | 1549917400 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 186 | 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")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,962 |
s558961674 | p04033 | u723721005 | 1549917288 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 162 | A, B = map(int, input().split())
if A > 0:
print("Positive")
elif A <= 0 <= B:
print("Zero")
else:
print("Positive" if (B-A+1)%2== 0 else "Negative")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,963 |
s043457403 | p04033 | u052347048 | 1549916419 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 161 | A, B = map(int, input().split())
if A > 0:
print("Positive")
elif A <= 0 <= B:
print("Zero")
else:
print("Positive" if (B-A+1)%2== 0 else "Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,964 |
s094946396 | p04033 | u599547273 | 1549916399 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 151 | A, B = map(int, input().split(" "))
if A <= 0 <= B:
print("Zero")
elif B < 0 and (B-A+1)%2==1:
print("Negative")
else:
print("Positive")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,965 |
s348951071 | p04033 | u131666536 | 1549642281 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 196 | # -*- coding: utf-8 -*-
#! python3
a, b = map(int, input().split())
ans = 'Positive'
if a*b <= 0:
ans = 'Zero'
elif a < 0 and b < 0 and (a-b)%2 == 0:
ans = 'Negative'
print(ans)
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,966 |
s148143629 | p04033 | u631277801 | 1549627307 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 719 | import sys
stdin = sys.stdin
sys.setrecursionlimit(10**8)
def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x)-1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline().rstrip(... | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,967 |
s316728866 | p04033 | u631277801 | 1549625507 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 718 | import sys
stdin = sys.stdin
sys.setrecursionlimit(10**8)
def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x)-1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline().rstrip(... | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,968 |
s289293672 | p04033 | u761320129 | 1549625440 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 241 | A,B = map(int,input().split())
if A <= 0 <= B:
print('Zero')
exit()
if 0 < A:
print('Positive')
elif B < 0:
c = B-A+1
print('Negative' if c%2 else 'Positive')
else:
c = -A
print('Negative' if c%2 else 'Positive') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,969 |
s739781796 | p04033 | u832039789 | 1549625376 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 192 | a,b = map(int,input().split())
if a <= 0 <= b:
print('Zero')
exit()
if a > 0:
print('Positive')
exit()
if (b - a) % 2 != 0:
print('Positive')
else:
print('Negative')
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,970 |
s684277856 | p04033 | u270681687 | 1549625358 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 175 | a, b = map(int, input().split())
if a > 0:
print("Positive")
elif a <= 0 and b >= 0:
print("Zero")
else:
print("Positive" if (b - a + 1) % 2 == 0 else "Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,971 |
s873062753 | p04033 | u879870653 | 1549625269 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 198 | a,b = map(int,input().split())
if a > 0 :
ans = "Positive"
elif a <= 0 and b >= 0 :
ans = "Zero"
elif b < 0 and (b-a) % 2 == 0 :
ans = "Negative"
else :
ans = "Positive"
print(ans)
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,972 |
s491551517 | p04033 | u375616706 | 1549580654 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 365 | # python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
linp = list(map(int, input().split()))
a, b = linp
if a == 0 or b == 0:
print("Zero")
elif a < 0 and b > 0:
print("Zero")
elif a < 0 and b < 0:
if (b-a) % 2 == 0:
print("Negative")
else:
p... | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,973 |
s643617631 | p04033 | u272557899 | 1549056442 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 202 | a, b = map(int, input().split())
if a <= 0 and b >= 0:
print("Zero")
elif a > 0:
print("Positive")
else:
if abs(b - a) % 2 == 0:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,974 |
s545842056 | p04033 | u588341295 | 1548888655 | Python | Python (3.4.3) | py | Accepted | 39 | 5156 | 1,426 | # -*- coding: utf-8 -*-
import sys, re
from collections import deque, defaultdict, Counter
from math import sqrt, hypot, factorial, pi, sin, cos, radians
if sys.version_info.minor >= 5: from math import gcd
else: from fractions import gcd
from heapq import heappop, heappush, heapify, heappushpop
from bisect import bi... | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,975 |
s588657548 | p04033 | u263933075 | 1548086651 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 186 | a=input().split()
a[0]=int(a[0])
a[1]=int(a[1])
if(a[0]<=0 and a[1]>=0):
print("Zero")
elif(a[0]<0 and a[1]<0 and (a[1]-a[0])%2==0):
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,976 |
s900165238 | p04033 | u785578220 | 1547855488 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 558 | def a():return input()#s
def ai():return int(input())#a,n or k
def ma():return map(int, input().split())#a,b,c,d or n,k
def ms():return map(str, input().split())#,a,b,c,d
def lma():return list(map(int, input().split()))#x or y
def lms():return list(map(str, input().split()))#x or y
k= []
l = []
f = 0
def say(i):return ... | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,977 |
s514535704 | p04033 | u619819312 | 1547610560 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 150 | a,b=map(int,input().split())
if a<=0and 0<=b:
print("Zero")
elif a>0:
print("Positive")
else:
print("Positive"if (b-a)%2!=0else"Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,978 |
s442575190 | p04033 | u102960641 | 1547430645 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 177 | a,b = map(int, input().split())
if a > 0:
print("Positive")
elif a <= 0 and b >= 0:
print("Zero")
else:
if (b - a) % 2:
print("Positive")
else:
print("Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,979 |
s133275764 | p04033 | u004025573 | 1547178076 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 166 | a, b = map(int, input().split())
if a<=0 and 0<=b:
print('Zero')
elif 0<a:
print('Positive')
else:
if (b-a+1)%2==0:
print('Positive')
else:
print('Negative') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,980 |
s946298958 | p04033 | u943004959 | 1546772863 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 243 | a,b=list(map(int,input().split()))
if(a>=0 and b>=0):
if(a==0 or b==0):
print("Zero")
else:
print("Positive")
elif(a<0 and b<0):
if(abs(a-b)%2 == 0):
print("Negative")
else:
print("Positive")
else:
print("Zero")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,981 |
s246579418 | p04033 | u787562674 | 1546559374 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 164 | a, b = map(int, input().split())
if a > 0:
print('Positive')
elif b < 0:
print('Positive' if (b - a + 1) % 2 == 0 else 'Negative')
else:
print('Zero')
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,982 |
s048460772 | p04033 | u759434129 | 1546421374 | Python | Python (2.7.6) | py | Accepted | 11 | 2568 | 167 | l, r = map(int, raw_input().split())
if l <= 0 <= r:
print "Zero"
elif l > 0:
print "Positive"
else:
if (r - l)%2 == 0:
print "Negative"
else:
print "Positive" | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,983 |
s485296042 | p04033 | u459233539 | 1546322302 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 200 | 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") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,984 |
s769874665 | p04033 | u459233539 | 1546322033 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 200 | 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") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,985 |
s307875296 | p04033 | u728498511 | 1546124944 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 256 | 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):
if (abs(a-b)+1) % 2 == 0:
print("Positive")
else :
print("Negative")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,986 |
s741163797 | p04033 | u391331433 | 1546105782 | Python | Python (2.7.6) | py | Accepted | 13 | 2928 | 673 | import sys
from collections import deque
import copy
import math
def get_read_func(fileobject):
if fileobject == None :
return raw_input
else:
return fileobject.readline
def main():
if len(sys.argv) > 1:
f = open(sys.argv[1])
else:
f = None
read_func = get_read_func... | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,987 |
s095599668 | p04033 | u848647227 | 1545969879 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 199 | a,b = map(int,input().split(" "))
if a > 0 and b > 0:
print("Positive")
elif a <= 0 and b >= 0:
print("Zero")
else:
if (abs(a-b)+1) % 2 == 0:
print("Positive")
else:
print("Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,988 |
s985422746 | p04033 | u371467115 | 1545853385 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 192 | a,b=map(int,input().split())
if a<0 and 0<b:
print("Zero")
elif 0<a:
print("Positive")
elif b<0:
if (abs(b-a)+1)%2==0:
print("Positive")
else:
print("Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,989 |
s074733661 | p04033 | u983918956 | 1545816208 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 233 | a,b = map(int,input().split())
if a <= 0 <= b:
ans = "Zero"
elif 0 < a:
ans = "Positive"
elif b < 0:
num = b - a + 1
if num % 2 == 0:
ans = "Positive"
elif num % 2 == 1:
ans = "Negative"
print(ans) | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,990 |
s595702012 | p04033 | u669382434 | 1545250273 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | a,b=map(int,input().split())
print(["Negative","Zero","Positive"][(a*b<=0)+2*(a>0 or (b<0 and (b-a)%2==1))]) | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,991 |
s364034617 | p04033 | u928784113 | 1545112878 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 239 | a,b = map(str,input().split())#整数を文字列として入力
S = a+b
P = S.count("-")
if P == 1:
print("Zero")
elif P == 2:
if (int(b) - int(a)) % 2 ==0:
print("Negative")
else:
print("Positive")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,992 |
s171605516 | p04033 | u445511055 | 1544901195 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 365 | # -*- coding: utf-8 -*-
def main():
"""Function."""
a, b = map(int, input().split())
if a > 0 and b > 0:
print("Positive")
elif a <= 0 and b >= 0:
print("Zero")
elif a < 0 and b < 0:
if (b - a) % 2 == 0:
print("Negative")
else:
print("Positi... | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,993 |
s911215570 | p04033 | u063052907 | 1544828968 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 203 | # coding: utf-8
a, b = map(int, input().split())
if a<=0<=b:
print("Zero")
elif 0<a<=b:
print("Positive")
else:
if (b-a+1)%2==0:
print("Positive")
else:
print("Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,994 |
s722697417 | p04033 | u001024152 | 1544725630 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 229 | a,b = map(int, input().split())
if a>0 and b>0:
print("Positive")
elif a<=0 and b>=0:
print("Zero")
elif a<0 and b<0:
if (b-a)%2==0:
print("Negative")
else:
print("Positive")
else:
print("??") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,995 |
s361510647 | p04033 | u731368968 | 1544660712 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 166 | a, b = map(int, input().split())
if a * b <= 0: print('Zero')
elif a > 0 and b > 0: print('Positive')
elif (a - b) % 2 == 0: print('Negative')
else :print('Positive') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,996 |
s503904126 | p04033 | u845333844 | 1544575297 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 179 | a,b=map(int,input().split())
if b<0:
if (b-a)%2==0:
print('Negative')
else:
print('Positive')
elif b==0 or a==0 or a<0<b:
print('Zero')
elif a>0:
print('Positive') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,997 |
s205477638 | p04033 | u588093355 | 1544491407 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 410 | import sys
def solve(a, b):
if a > 0:
print('Positive')
elif a <= 0 and b >= 0:
print('Zero')
elif (b - a) % 2 == 0:
print('Negative')
else:
print('Positive')
def readQuestion():
ws = sys.stdin.readline().strip().split()
a = int(ws[0])
b = int(ws[1])
ret... | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,998 |
s046547953 | p04033 | u513081876 | 1544411647 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 231 | a, b = map(int, input().split())
if a <= 0 <= b:
print('Zero')
else:
if 1<= a:
print('Positive')
else:
if abs(b-a) % 2 == 0:
print('Negative')
else:
print('Positive') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,999 |
s486928342 | p04033 | u557437077 | 1544391844 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 221 | a, b = [int(i) for i in 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:
print("Positive")
else:
print("Zero")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,000 |
s349716375 | p04033 | u785220618 | 1544237490 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 290 | a, b = map(int, input().split())
if a <= 0 <= b:
print('Zero')
elif 0 <= a:
if a == 0:
print('Zero')
else:
print('Positive')
elif b <= 0:
if b == 0:
print('Zero')
elif (b-a) % 2 == 1:
print('Positive')
else:
print('Negative')
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,001 |
s158905751 | p04033 | u284854859 | 1543442618 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 246 | # cook your dish here
a,b = map(int,input().split())
if b < 0:
if (b-a)% 2 == 0:
print("Negative")
else:
print("Positive")
elif a == 0 or b == 0:
print("Zero")
elif a < 0:
print("Zero")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,002 |
s268972222 | p04033 | u844789719 | 1543427173 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 211 | a, b = [int(_) for _ in input().split()]
if a > 0 and b > 0:
print('Positive')
elif a < 0 and b < 0:
if (b - a) % 2:
print('Positive')
else:
print('Negative')
else:
print('Zero')
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,003 |
s433440079 | p04033 | u047535298 | 1543104168 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 177 | a, b = map(int, input().split())
if(a > 0 and b > 0):
print("Positive")
elif(a <= 0 and b >= 0):
print("Zero")
else:
print("Positive" if (b-a)%2==1 else "Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,004 |
s639551495 | p04033 | u853900545 | 1542772551 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 183 | a,b = map(int,input().split())
if a>0 and b>0:
print('Positive')
elif a*b <= 0:
print('Zero')
elif (abs(a)-abs(b)+1)%2 == 0:
print('Positive')
else:
print('Negative') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,005 |
s754849944 | p04033 | u432805419 | 1542164299 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 147 | a,b = list(map(int,input().split()))
if a * b <= 0:
print("Zero")
elif b < 0 and (b - a) % 2 == 0:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,006 |
s796811177 | p04033 | u820351940 | 1542068453 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 282 | a, b = map(int, input().split())
positive = "Positive"
negative = "Negative"
zero = "Zero"
if a > 0 and b > 0:
print(positive)
elif (a <= 0 and b >= 0) or (a >= 0 and b <= 0):
print(zero)
else:
if (b - a) % 2:
print(positive)
else:
print(negative)
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,007 |
s085465625 | p04033 | u137667583 | 1542068261 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 158 | a, b = map(int,input().split())
if (a <= 0 and b >= 0):
print("Zero")
elif (abs(b-a)%2 == 0 and a < 0):
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,008 |
s541463310 | p04033 | u409064224 | 1542067965 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 221 | a,b = map(int,input().split())
if a<0 and b>0:
print("Zero")
exit()
if a < 0 and b <= 0:
if (a-b)%2 == 0:
print("Negative")
else:
print("Positive")
if a>0 and b>0:
print("Positive")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,009 |
s990084899 | p04033 | u500279510 | 1542058908 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 219 | a, b = map(int,input().split())
n = b - a + 1
if a <= 0 <= b:
print('Zero')
exit()
elif a >= 1:
print('Positive')
exit()
else:
if n%2==0:
print('Positive')
else:
print('Negative') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,010 |
s915038924 | p04033 | u398846051 | 1541815739 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 147 | a, b = map(int, input().split())
if a <= 0 <= b:
print("Zero")
elif b < 0 and (b-a+1)%2 == 1:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,011 |
s985403053 | p04033 | u505420467 | 1541797384 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 259 | a,b=map(int,input().split())
if (a>0 and b>0):
print("Positive")
elif a==0 or b==0 or a==b:
print("Zero")
elif a<0 and b<0:
tmp=abs(a)-abs(b)+1
if tmp%2==0:
print("Positive")
else:
print("Negative")
else:
print("Zero")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,012 |
s696950280 | p04033 | u214617707 | 1541641614 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 193 | a, b = map(int, input().split())
if a <= 0 <= b:
print("Zero")
elif 0 < a:
print("Positive")
else:
if (a - b) % 2 == 0:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,013 |
s370986371 | p04033 | u214617707 | 1541641606 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 193 | a, b = map(int, input().split())
if a <= 0 <= b:
print("Zero")
elif 0 < a:
print("Positive")
else:
if (a - b) % 2 == 0:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,014 |
s165413769 | p04033 | u426964396 | 1541272788 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 236 | s = input().split()
if int(s[0])>0 :
print("Positive")
else :
if int(s[1])>=0 :
print("Zero")
else :
if (int(s[0])&1)^(int(s[1])&1) :
print("Positive")
else :
print("Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,015 |
s714436491 | p04033 | u427344224 | 1540908132 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 263 | 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")
else:
abs_ab = abs(a-b)
if abs_ab % 2 == 0:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,209,016 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.