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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s047744200 | p04033 | u763280125 | 1594345493 | Python | Python (3.8.2) | py | Accepted | 29 | 9092 | 199 | a, b = list(map(int, input().split()))
if a > b:
a, b = b, a
if 0 < a or (b < 0 and (b - a) % 2 == 1):
print('Positive')
elif a <= 0 and 0 <= b:
print('Zero')
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,317 |
s915346293 | p04033 | u113107956 | 1594327007 | Python | Python (3.8.2) | py | Accepted | 31 | 9088 | 270 | a,b=map(int,input().split())
if a>0 and b>0:
print('Positive')
elif a==0 or b==0:
print('Zero')
else:
if a<0 and b>0:
print('Zero')
elif a<0 and b<0:
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,208,318 |
s869376675 | p04033 | u694665829 | 1594318972 | Python | Python (3.8.2) | py | Accepted | 26 | 9180 | 266 | a,b=map(int,input().split())
if a>=0:
print("Positive" if a!=0 else "Zero")
if a<0 and b>0:
print("Zero")
if b<=0:
if b==0:
print("Zero")
else:
if (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,319 |
s042859078 | p04033 | u201544433 | 1594231452 | Python | Python (3.8.2) | py | Accepted | 26 | 9128 | 233 | 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") | 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,320 |
s280070826 | p04033 | u094999522 | 1594178841 | Python | Python (3.8.2) | py | Accepted | 26 | 9008 | 221 | #!/usr/bin/env python3
a, b = map(int, input().split())
if a > 0 and b > 0:
print("Positive")
elif b >= 0:
print("Zero")
else:
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,321 |
s488817214 | p04033 | u357751375 | 1594147529 | Python | Python (3.8.2) | py | Accepted | 28 | 9176 | 209 | a,b = map(int,input().split())
if 0 < a and 0 < b:
print('Positive')
elif a < 0 and 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,322 |
s779976971 | p04033 | u062691227 | 1594098510 | Python | PyPy3 (7.3.0) | py | Accepted | 64 | 61820 | 222 | a, b = map(int, open(0).read().split())
if a > 0:
print('Positive')
elif a == 0 or b == 0:
print('Zero')
elif a < 0 and b > 0:
print('Zero')
elif (b-a)%2 == 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,323 |
s477281368 | p04033 | u628335443 | 1594082361 | Python | Python (3.8.2) | py | Accepted | 28 | 9040 | 218 | a, b = map(int, input().split())
if a <= 0 <= b:
print('Zero')
exit()
if a > 0:
print('Positive')
else:
if (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,208,324 |
s589141248 | p04033 | u098982053 | 1594028038 | Python | Python (3.8.2) | py | Accepted | 26 | 9168 | 226 | a,b = map(int,input().split())
if (a<=0 and b>=0) :
print("Zero")
else:
if a>0:
print("Positive")
elif b<0:
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,325 |
s538781378 | p04033 | u652907854 | 1594011818 | Python | PyPy3 (7.3.0) | py | Accepted | 84 | 67104 | 1,001 | # JAI SHREE RAM
import math; from collections import *
import sys; from functools import reduce
# sys.setrecursionlimit(10**6)
def get_ints(): return map(int, input().strip().split())
def get_list(): return list(get_ints())
def get_string(): return list(input().strip().split())
def printxsp(*... | 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,326 |
s313580490 | p04033 | u535803878 | 1593979270 | Python | PyPy3 (7.3.0) | py | Accepted | 64 | 61776 | 328 | import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")
a,b = map(int, input().split())
if a>0:
ans = "Positive"
elif b<0:
if (b-a+1)%2==0:
ans = "Positive"
else:
ans = "Negative"
else:
ans = "Zero"
pr... | 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,327 |
s954018684 | p04033 | u163421511 | 1593970869 | Python | Python (3.8.2) | py | Accepted | 29 | 9116 | 171 | a, b = map(int, input().split())
if a*b < 1:
ans = "Zero"
elif a > 0:
ans = "Positive"
else:
ans = "Positive" if (b-a+1) % 2 == 0 else "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,328 |
s463331600 | p04033 | u380524497 | 1593967343 | Python | Python (3.8.2) | py | Accepted | 28 | 9060 | 351 | a, b = map(int, input().split())
def is_neg(num):
return num < 0
if a == 0 or b == 0:
print("Zero")
exit()
if is_neg(a) and not is_neg(b):
print("Zero")
exit()
neg_count = 0
if is_neg(a):
neg_count += abs(a)
if is_neg(b):
neg_count -= abs(b) - 1
if neg_count % 2:
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,329 |
s280357670 | p04033 | u768896740 | 1593959263 | Python | Python (3.8.2) | py | Accepted | 29 | 9112 | 173 | a, b = map(int, input().split())
if a * b <= 0:
print('Zero')
elif a > 0:
print('Positive')
elif (a - b) % 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,330 |
s129253076 | p04033 | u492749916 | 1593908825 | Python | Python (3.8.2) | py | Accepted | 29 | 9108 | 176 | a, b = list(map(int, input().split()))
if a*b <= 0:
print("Zero")
elif a > 0:
print("Positive")
elif b < 0 and (-a-b)%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,331 |
s470756652 | p04033 | u634046173 | 1593899271 | Python | Python (3.8.2) | py | Accepted | 24 | 9088 | 168 | a,b = map(int,input().split())
if a > 0 or a == b:
print('Positive')
elif a <= 0 <= b:
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,208,332 |
s330812616 | p04033 | u232873434 | 1593875071 | Python | PyPy3 (7.3.0) | py | Accepted | 79 | 61336 | 236 | a,b = map(int,input().split())
if (a>0) & (b>0):
print('Positive')
elif (a<0) & (b>0):
print('Zero')
elif (a==0) or(b==0):
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,333 |
s508848727 | p04033 | u313111801 | 1593856720 | Python | Python (3.8.2) | py | Accepted | 25 | 9088 | 158 | a,b=map(int,input().split())
ans=""
if a<=0<=b:
ans="Zero"
elif (a<=b<0 and (b-a)%2==1) or 0<a<=b:
ans="Positive"
else:
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,334 |
s075307200 | p04033 | u248556072 | 1593806225 | Python | Python (3.8.2) | py | Accepted | 29 | 9072 | 156 | a, b = map(int,input().split())
if a <= 0 <= b:
print('Zero')
elif a <= b < 0 and 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,335 |
s427066947 | p04033 | u437215432 | 1593783648 | Python | Python (3.8.2) | py | Accepted | 29 | 9164 | 194 | a, b = map(int, input().split())
if a * b <= 0:
print('Zero')
elif 1 <= a:
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,336 |
s225616976 | p04033 | u652057333 | 1593678894 | Python | PyPy3 (7.3.0) | py | Accepted | 78 | 61860 | 171 | a, b = map(int, input().split())
if a <= 0 and 0 <= b:
print("Zero")
exit()
cnt_neg = min(0, b) - a
if cnt_neg % 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,337 |
s980416499 | p04033 | u811176339 | 1593612321 | Python | Python (3.8.2) | py | Accepted | 25 | 9172 | 202 | a, b = [int(w) for w in input().split()]
if a * b <= 0:
print("Zero")
elif a > 0:
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,208,338 |
s946401716 | p04033 | u779805689 | 1593556815 | Python | PyPy3 (7.3.0) | py | Accepted | 73 | 61804 | 224 | a,b=map(int,input().split())
if a<=0<=b:
#0 in [a,b]
print("Zero")
elif 0<a:
#0<a<=b
print("Positive")
else:
#a<=b<0
M=b-a+1
if M%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,339 |
s210335298 | p04033 | u068142202 | 1593536064 | Python | Python (3.8.2) | py | Accepted | 27 | 9108 | 216 | 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")
elif a <= 0 <= b:
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,340 |
s936844032 | p04033 | u500376440 | 1593522728 | Python | Python (3.8.2) | py | Accepted | 27 | 9156 | 174 | 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")
elif a<=0<=b:
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,341 |
s451435340 | p04033 | u492737043 | 1593486266 | Python | Python (3.8.2) | py | Accepted | 26 | 9108 | 166 | 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') | 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,342 |
s829509473 | p04033 | u450956662 | 1593476849 | Python | Python (3.8.2) | py | Accepted | 27 | 9120 | 225 | a, b = map(int, input().split())
res = ''
if b >= 0:
if a <= 0:
res = 'Zero'
else:
res = 'Positive'
else:
if (b - a) % 2 == 0:
res = 'Negative'
else:
res = 'Positive'
print(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,343 |
s374326901 | p04033 | u434649140 | 1593463701 | Python | Python (3.8.2) | py | Accepted | 31 | 9072 | 199 | x, y = map(int, input().split())
if 0 < x <= y:
print("Positive")
elif x <= y < 0:
if (y-x+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,344 |
s327803919 | p04033 | u388463553 | 1593457272 | Python | Python (3.8.2) | py | Accepted | 28 | 9064 | 213 | 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:
x=b-a+1
if x%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,345 |
s747936630 | p04033 | u047931063 | 1593389979 | Python | Python (3.8.2) | py | Accepted | 25 | 9108 | 409 | # n, m, l = map(int, input().split())
# list_n = list(map(int, input().split()))
# n = input()
# list = [input() for i in range(N)
# list = [[i for i in range(N)] for _ in range(M)]
import sys
input = sys.stdin.readline
a, b = map(int, input().split())
if a > 0 and b > 0:
print("Positive")
elif a * b <= 0:
... | 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,346 |
s327886175 | p04033 | u397953026 | 1593389193 | Python | Python (3.8.2) | py | Accepted | 31 | 9136 | 272 | a,b = map(int,input().split())
count = 0
if a > 0:
print("Positive")
elif a == 0:
print(0)
else:
if b >= 0:
print("Zero")
else:
count = a-b+1
if count%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,347 |
s913313582 | p04033 | u749614185 | 1593385156 | Python | Python (3.8.2) | py | Accepted | 28 | 9172 | 165 | 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,348 |
s890836438 | p04033 | u749614185 | 1593385098 | Python | Python (3.8.2) | py | Accepted | 28 | 9116 | 165 | 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,349 |
s181762489 | p04033 | u277429554 | 1593365514 | Python | Python (3.8.2) | py | Accepted | 28 | 9168 | 198 | 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,350 |
s698479247 | p04033 | u032222383 | 1593319869 | Python | PyPy3 (7.3.0) | py | Accepted | 64 | 61856 | 212 | a,b=map(int,input().split())
if (a<=0 and b>=0) or (b<=0 and a>=0):
print("Zero")
elif a>0 and b>0:
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,351 |
s210361348 | p04033 | u391819434 | 1593305614 | Python | Python (3.8.2) | py | Accepted | 29 | 9096 | 141 | A,B=map(int,input().split())
if A<=0 and 0<=B:
print('Zero')
elif A+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,352 |
s211940153 | p04033 | u350093546 | 1593297768 | Python | Python (3.8.2) | py | Accepted | 26 | 9188 | 222 | a,b=map(int,input().split())
if a==0 or b==0:
print('Zero')
elif 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') | 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,353 |
s100520407 | p04033 | u276686572 | 1593277275 | Python | Python (3.8.2) | py | Accepted | 31 | 8948 | 226 | 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") | 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,354 |
s047810048 | p04033 | u109436774 | 1593209405 | Python | Python (3.8.2) | py | Accepted | 29 | 9096 | 226 | a, b = map(int, input().split())
ans = ''
if a > 0 and b > 0:
ans = 'Positive'
elif a <= 0 and b >= 0:
ans = 'Zero'
elif a < 0 and b < 0:
if (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,355 |
s679408741 | p04033 | u934119021 | 1593142350 | Python | Python (3.8.2) | py | Accepted | 27 | 9108 | 226 | a, b = map(int, input().split())
ans = ''
if a > 0 and b > 0:
ans = 'Positive'
elif a <= 0 and b >= 0:
ans = 'Zero'
elif a < 0 and b < 0:
if (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,356 |
s837502777 | p04033 | u605086727 | 1593128887 | Python | Python (3.8.2) | py | Accepted | 28 | 9096 | 226 | a, b = map(int, input().split())
if 0 < a:
print("Positive")
elif a == 0 or 0 <= b:
print("Zero")
else:
length = abs(a + b + 1)
if length % 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,357 |
s295854833 | p04033 | u000085263 | 1593067597 | Python | Python (3.8.2) | py | Accepted | 32 | 9180 | 264 | 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") | 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,358 |
s241532773 | p04033 | u696499790 | 1593057687 | Python | Python (3.8.2) | py | Accepted | 31 | 9076 | 159 | a,b=map(int,input().split())
if a*b<=0:
ans='Zero'
elif a>0 and b>0:
ans='Positive'
elif abs(a-b)%2!=0 :
ans='Positive'
else:
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,359 |
s846285862 | p04033 | u016843859 | 1593043030 | Python | Python (3.8.2) | py | Accepted | 29 | 9120 | 192 | a,b=map(int,input().split())
if (a<=0)&(b>=0):
print("Zero")
elif(a>0)&(b>0):
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,360 |
s173772584 | p04033 | u883040023 | 1593032401 | Python | Python (3.8.2) | py | Accepted | 26 | 9112 | 161 | a,b = map(int,input().split())
ans = "Positive"
if b < 0:
if (b-a+1) % 2 != 0:
ans = "Negative"
if a * b <= 0:
ans = "Zero"
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,361 |
s675110100 | p04033 | u848263468 | 1593030065 | Python | Python (3.8.2) | py | Accepted | 28 | 9132 | 162 | 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,362 |
s570740311 | p04033 | u849029577 | 1593014698 | Python | PyPy3 (7.3.0) | py | Accepted | 65 | 61848 | 201 | a, b = map(int, input().split())
if a<0 and b<0:
if (b-a)%2 == 0:
print("Negative")
else:
print("Positive")
elif a <= 0 and b >= 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,208,363 |
s017547988 | p04033 | u020798319 | 1592960736 | Python | Python (3.8.2) | py | Accepted | 26 | 9088 | 170 | 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,364 |
s647634701 | p04033 | u841021102 | 1592960512 | Python | Python (3.8.2) | py | Accepted | 26 | 9108 | 179 | 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,365 |
s429876180 | p04033 | u796716859 | 1592893536 | Python | PyPy3 (7.3.0) | py | Accepted | 61 | 61544 | 194 | a, b = map(int, input().split())
if a>=0 and b>=0:
print('Positive')
elif 0>b:
if (b-a+1)%2==0:print('Positive')
else:print('Negative')
elif a<=0<=b:
print('Zero')
else:
pass | 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,366 |
s504771153 | p04033 | u864276028 | 1592883680 | Python | Python (3.8.2) | py | Accepted | 29 | 9076 | 165 | 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,367 |
s387001159 | p04033 | u761062383 | 1592858553 | Python | Python (3.8.2) | py | Accepted | 26 | 9160 | 320 | def resolve():
a, b = [int(i) for i in input().split()]
if a <= 0 and 0 <= b:
print("Zero")
else:
if a > 0:
print("Positive")
else:
if (abs(b - a) + 1) % 2 == 0:
print("Positive")
else:
print("Negative")
resolve()
| 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,368 |
s904068337 | p04033 | u112364985 | 1592781686 | Python | Python (3.8.2) | py | Accepted | 26 | 9120 | 181 | 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,369 |
s937423897 | p04033 | u285681431 | 1592734314 | Python | Python (3.8.2) | py | Accepted | 26 | 9052 | 323 | a, b = map(int, input().split())
ans = 1
if a > 0 and b > 0:
print("Positive")
elif a == 0:
print("Zero")
elif a < 0 and b > 0:
print("Zero")
elif b == 0:
print("Zero")
elif a < 0 and b < 0:
diff = b - a
if diff % 2 == 0:
print("Negative")
elif diff % 2 != 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,370 |
s465992395 | p04033 | u257162238 | 1592711391 | Python | Python (3.8.2) | py | Accepted | 28 | 9176 | 377 | import sys
input = sys.stdin.readline
def read():
a, b = map(int, input().strip().split())
return a, b
def solve(a, b):
if a <= 0 and 0 <= b:
return "Zero"
minus = 0
if b < 0:
minus = abs(b - a) + 1
return "Positive" if minus % 2 == 0 else "Negative"
if __name__ == '__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,371 |
s131266945 | p04033 | u767995501 | 1592699745 | Python | Python (3.8.2) | py | Accepted | 28 | 9044 | 237 | a, b = map(int, input().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)])
| 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,372 |
s320518879 | p04033 | u492910842 | 1592629574 | Python | PyPy3 (7.3.0) | py | Accepted | 63 | 61852 | 206 | a,b = map(int,input().split())
if a > 0:
ans = "Positive"
elif a == 0:
ans = "Zero"
elif b >= 0:
ans = "Zero"
else:
if abs(a-b)%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,373 |
s624967324 | p04033 | u277104886 | 1592610082 | Python | Python (3.8.2) | py | Accepted | 28 | 9172 | 195 | a, b = map(int, input().split())
if a > 0:
print('Positive')
elif a <= 0 and b >= 0:
print('Zero')
else:
if (b-a)%2 == 0:
print('Negative')
else:
print('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,374 |
s062153529 | p04033 | u629607744 | 1592609932 | Python | Python (3.8.2) | py | Accepted | 28 | 9204 | 344 | def i():
return int(input())
def i2():
return map(int,input().split())
def s():
return str(input())
def l():
return list(input())
def intl():
return list(int(k) for k in input().split())
a,b = i2()
if a > 0:
print("Positive")
elif a <= 0 and 0 <= b:
print("Zero")
else:
if (b - a)%2 == 0:
print("Negative")
e... | 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,375 |
s410317692 | p04033 | u102461423 | 1592592265 | Python | Python (3.8.2) | py | Accepted | 28 | 9148 | 353 | 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', ... | 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,376 |
s514884137 | p04033 | u325956328 | 1592570530 | Python | Python (3.8.2) | py | Accepted | 29 | 9184 | 406 | a, b = map(int, input().split())
def f(x):
if x < 0:
return -1
elif x > 0:
return 1
else:
return 0
if f(a) == 0 or f(b) == 0:
ans = "Zero"
elif f(a) == -1 and f(b) == -1:
diff = b - a
if (diff + 1) % 2 == 0:
ans = "Positive"
else:
ans = "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,377 |
s223942563 | p04033 | u131453093 | 1592430840 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 284 | a, b = map(int, input().split())
a_pulus = a >= 0
b_pulus = b >= 0
a_minus = a < 0
b_minus = b < 0
if a_pulus & b_pulus:
print("Positive")
elif a_minus & b_pulus:
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,378 |
s901464299 | p04033 | u253481827 | 1592419814 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 173 | a,b = map(int,input().split())
if a < 0 and b >= 0:
ans = 'Zero'
elif a < 0 and b < 0 and abs(a-b) % 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,379 |
s784053529 | p04033 | u027557357 | 1592340620 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 218 | a,b = map(int,input().split())
if a>0 and b>0 :
print("Positive")
elif a<0 and b<0 :
t = abs(a)-abs(b)+1
if t%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,380 |
s372494024 | p04033 | u847923740 | 1592152622 | Python | Python (3.4.3) | py | Accepted | 22 | 3444 | 352 | #
import sys
from copy import deepcopy
input=sys.stdin.readline
def main():
a,b=map(int,input().split())
if a*b<=0:
print("Zero")
elif a>0:
print("Positive")
else:
pm=(b-a+1)
if pm%2==0:
print("Positive")
else:
print("Negative")
if _... | 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,381 |
s535874281 | p04033 | u640922335 | 1592041068 | Python | Python (3.4.3) | py | Accepted | 16 | 3060 | 167 | a,b=map(int,input().split())
K=1
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,382 |
s014454026 | p04033 | u085717502 | 1592009344 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 276 | #!/usr/bin/env python
# coding: utf-8
# In[18]:
a,b = map(int, input().split())
# In[19]:
if a*b <= 0:
print("Zero")
elif a > 0 and b > 0:
print("Positive")
else:
if (b-a)%2 == 1:
print("Positive")
else:
print("Negative")
# In[ ]:
| 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,383 |
s518197664 | p04033 | u991619971 | 1592003505 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 648 | #import numpy as np
#import functools
#import operator
#from itertools import combinations as comb
#from itertools import combinations_with_replacement as comb_with
#from itertools import permutations as perm
#N = int(input())
a,b= map(int,input().split())
#A = list(map(int,input().split()))
#B = list(map(int,input()... | 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,384 |
s120591761 | p04033 | u642012866 | 1591922138 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 214 | A, B = map(int, input().split())
if A > 0:
print("Positive")
elif A == 0:
print("Zero")
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,385 |
s072367700 | p04033 | u364386647 | 1591911634 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 232 | def resolve():
a, b = list(map(int, input().split()))
if a <= 0 and b >= 0:
print('Zero')
elif b < 0 and (b - a + 1) % 2 == 1:
print('Negative')
else:
print('Positive')
return
resolve() | 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,386 |
s004855240 | p04033 | u474925961 | 1591911047 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 179 | a,b=map(int,input().split())
if a>0:
print("Positive")
elif a*b<=0:
print("Zero")
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,208,387 |
s379177142 | p04033 | u345778634 | 1591842612 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 149 | 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,388 |
s362515978 | p04033 | u425762225 | 1591838583 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 203 | def solve(a,b):
if a <= 0 and b >= 0:
return "Zero"
elif a < b < 0 and (b-a+1) % 2 == 1:
return "Negative"
else:
return "Positive"
a,b = map(int,input().split())
print(solve(a,b)) | 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,389 |
s124940582 | p04033 | u285891772 | 1591798049 | Python | Python (3.4.3) | py | Accepted | 39 | 5268 | 1,018 | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees#, log2, log
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgette... | 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,390 |
s786530500 | p04033 | u285891772 | 1591797956 | Python | Python (3.4.3) | py | Accepted | 39 | 5200 | 1,028 | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees#, log2, log
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgette... | 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,391 |
s662854332 | p04033 | u488178971 | 1591789421 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 232 | a,b =map(int,input().split())
cnt =b-a+1
if a <0 and b>0 or a==0 or b==0:
ans = "Zero"
elif (a>0 and b>0) or(a<0 and b<0 and cnt%2==0) :
ans="Positive"
elif(a<0 and b<0 and cnt%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,392 |
s132606102 | p04033 | u771007149 | 1591676645 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 212 | #AGC002-A
a,b = map(int,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')
| 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,393 |
s876876004 | p04033 | u629350026 | 1591662303 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 175 | a,b=map(int,input().split())
if a<0 and b<0:
if (b-a)%2!=0:
print("Positive")
else:
print("Negative")
elif a<=0 and b>=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,208,394 |
s188046785 | p04033 | u168416324 | 1591656087 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 188 | 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 abs(a-b)%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,395 |
s463139509 | p04033 | u088863512 | 1591570238 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 685 | # -*- coding: utf-8 -*-
import sys
from collections import defaultdict, deque
# def input(): return sys.stdin.readline()[:-1] # warning not \n
# def input(): return sys.stdin.buffer.readline()[:-1]
def solve():
a, b = [int(x) for x in input().split()]
if a <= 0 and b >= 0:
print("Zero")
elif a > 0... | 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,396 |
s696103796 | p04033 | u115877451 | 1591568434 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 198 | a,b=map(int,input().split())
if a<=0<=b:
print('Zero')
elif a<0 and b<0:
n=abs(a-b)+1
if n%2==0:
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,397 |
s217499843 | p04033 | u509739538 | 1591512787 | Python | Python (3.4.3) | py | Accepted | 22 | 3444 | 2,907 | import math
from collections import deque
from collections import defaultdict
import bisect
#自作関数群
def readInt():
return int(input())
def readInts():
return list(map(int, input().split()))
def readChar():
return input()
def readChars():
return input().split()
def factorization(n):
res = []
if n%2==0:
res.appe... | 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,398 |
s667258220 | p04033 | u782930273 | 1591493270 | Python | Python (3.4.3) | py | Accepted | 16 | 2940 | 174 | a, b = map(int, input().split())
if b < 0:
print("Positive" if (b - a + 1) % 2 == 0 else "Negative")
elif a <= 0 and b >= 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,208,399 |
s480893133 | p04033 | u344122377 | 1591374117 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 209 | a, b = map(int, input().split());
if a * b <= 0 :
print('Zero')
exit(0)
if a > 0 and b > 0 :
print('Positive')
exit(0)
x = b - a + 1
if(x%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,400 |
s404603828 | p04033 | u830054172 | 1591362021 | Python | Python (3.4.3) | py | Accepted | 19 | 3188 | 198 | a, b = map(int, input().split())
if a <= 0 and b >= 0:
ans = "Zero"
elif a > 0:
ans = "Positive"
else:
if (b-a)%2:
ans = "Positive"
else:
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,401 |
s022774253 | p04033 | u710515311 | 1591326920 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 261 | a, b = [int(i) for i in input().split()]
if a > 0:
print("Positive")
elif a == 0:
print("Zero")
else:
if b >= 0:
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,402 |
s827724332 | p04033 | u581403769 | 1591315804 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 199 | a, b = map(int, input().split())
if a > 0:
print('Positive')
elif a * b <= 0:
print('Zero')
elif 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,403 |
s820862576 | p04033 | u343977188 | 1591306113 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 175 | a,b=map(int,input().split())
if a*b<=0:
print("Zero")
elif a>0 or a==b:
print("Positive")
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,404 |
s410122171 | p04033 | u411237324 | 1591229303 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 160 | a, b = map(int, input().split())
if a * b <= 0:
print('Zero')
elif a > 0 or (a < 0 and (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,405 |
s870469696 | p04033 | u151785909 | 1591155790 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 170 | a , b = map(int, input().split())
if a*b<=0:
print('Zero')
elif a>0:
print('Positive')
elif 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,406 |
s585702133 | p04033 | u366886346 | 1591155042 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 226 | a,b=map(int,input().split())
if a<=0 and b>=0:
print("Zero")
else:
if a>0 and b>0:
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,407 |
s702397408 | p04033 | u374082254 | 1591132445 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 250 | a, b = map(int, input().split())
# 0を挟む場合
if a <= 0 and 0 <= b:
print("Zero")
# 両方プラスの場合
elif a > 0:
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,408 |
s554279423 | p04033 | u098012509 | 1591070803 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 388 | import sys
sys.setrecursionlimit(10 ** 8)
input = sys.stdin.readline
def main():
A, B = [int(x) for x in input().split()]
if A >= 1:
print("Positive")
elif A * B <= 0:
print("Zero")
else:
if (abs(B) - abs(A) + 1) % 2 == 1:
print("Negative")
else:
... | 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,409 |
s243859231 | p04033 | u724742135 | 1591046656 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 221 | from sys import stdin
a, b= [int(_) for _ in stdin.readline().rstrip().split()]
if a > 0:
print("Positive")
elif a <= 0 and b >= 0:
print("Zero")
elif (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,410 |
s104891071 | p04033 | u125545880 | 1591015481 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 309 | def main():
a, b = map(int, input().split())
if a > 0:
print('Positive')
elif a <= 0 and b >= 0:
print('Zero')
else:
cnt = b - a + 1
if cnt%2 == 0:
print('Positive')
else:
print('Negative')
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,411 |
s822267947 | p04033 | u453642820 | 1590960994 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 196 | a,b=map(int,input().split())
if a>0 and b>0:
print("Positive")
elif a<=0 and b>=0:
print("Zero")
elif (abs(b-a)+1)%2==0:
print("Positive")
elif (abs(b-a)+1)%2==1:
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,412 |
s279727990 | p04033 | u934442292 | 1590954340 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 340 | import sys
input = sys.stdin.readline
def main():
a, b = map(int, input().split())
if b < 0:
if (b - a) % 2 == 0:
ans = "Negative"
else:
ans = "Positive"
elif a <= 0 <= b:
ans = "Zero"
else:
ans = "Positive"
print(ans)
if __name__ == "__... | 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,413 |
s633943321 | p04033 | u749643742 | 1590936266 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 169 | 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,414 |
s944066207 | p04033 | u238940874 | 1590934092 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 227 | a,b=map(int,input().split())
if a>0 and b>0:
print('Positive')
elif a<0 and b<0 and (abs(a)-abs(b)+1)%2 != 0:
print('Negative')
elif a<0 and b<0 and (abs(a)-abs(b)+1)%2==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,208,415 |
s516455787 | p04033 | u760961723 | 1590894860 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 168 | 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,416 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.