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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s092812639 | p04033 | u323680411 | 1540772828 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 590 | from sys import stdin
def main() -> None:
a = next_int()
b = next_int()
print(("Negative", "Zero", "Positive")[calc(a, b) + 1])
def calc(a: int, b: int) -> int:
if a <= 0 <= b:
return 0
elif a > 0 or (b - a) % 2 != 0:
return 1
else:
return -1
def next_int() -> int:... | 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,017 |
s603557636 | p04033 | u791664126 | 1540218735 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 116 | a,b=map(int,input().split())
print(['Negative'if abs(a-b)%2==0else 'Positive','Zero','Positive'][int(a>0)+int(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,209,018 |
s090359136 | p04033 | u533885955 | 1540142392 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 316 | a,b = map(int,input().split())
if a*b <= 0:
print("Zero")
elif a*b > 0:
if a > 0:
print("Positive")
elif a < 0:
if b > 0:
if a%2 == 0:
print("Positive")
else:
print("Negative")
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,209,019 |
s621698225 | p04033 | u923279197 | 1539831728 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 193 | a,b=map(int,input().split())
if a>0:
print('Positive')
elif b<0:
c=b-a+1
ans=c%2
if ans==1:
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,209,020 |
s871193287 | p04033 | u138486156 | 1539663227 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 196 | a, b = map(int, input().split())
p = b - a + 1
if b < 0:
if p%2:
print("Negative")
else:
print("Positive")
elif a <= 0 <= b:
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,021 |
s020576367 | p04033 | u631277801 | 1539639349 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 240 | a,b = map(int, input().split())
cont0 = False
if a <= 0 <= b:
cont0 = True
neg = 0
if b < 0:
neg = a-b+1
elif a < 0:
neg = -a
if cont0:
print("Zero")
else:
if neg % 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,022 |
s645200065 | p04033 | u724892495 | 1539616734 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 160 | a,b = map(int,input().split())
if 0 < a:
ans = 'Positive'
elif b < 0:
ans = 'Positive' if (b-a+1)%2==0 else 'Negative'
else:
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,209,023 |
s517466890 | p04033 | u729133443 | 1539495103 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 90 | a,b=map(int,input().split());print('PNoesgiattiivvee'[b<0and(b-a+1)%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,209,024 |
s387135802 | p04033 | u729133443 | 1539493579 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 91 | a,b=map(int,input().split());print('Zero'*(a*b<=0)or'PNoesgiattiivvee'[b<0and(b-a+1)%2::2]) | 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,025 |
s320627987 | p04033 | u333139319 | 1539110768 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 215 | [a,b] = [int(i) for i in input().split()]
if a > 0:
print("Positive")
elif (a <= 0 and b >= 0):
print("Zero")
else:
if (b - a + 1) % 2 == 0:
print("Positive")
else:
print("Negative")
| 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,026 |
s731243614 | p04033 | u711295009 | 1538925588 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 193 | a, b = map(int, input().split())
if a >0:
print("Positive")
elif a < 1 and b >-1:
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,209,027 |
s732404228 | p04033 | u879870653 | 1538794678 | 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 a >= 1 :
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,209,028 |
s366817346 | p04033 | u603234915 | 1538775073 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 229 | a, b = map(int, input().split())
if a <= 0 and 0 <= b:
print("Zero")
elif b < 0:
cnt = abs(a) - abs(b) + 1
if cnt%2:
print("Negative")
else:
print("Positive")
elif 0 < a:
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,029 |
s025586194 | p04033 | u457901067 | 1538666497 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 183 | a, b = map(int,input().split())
if a >= 1:
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,209,030 |
s347170175 | p04033 | u064408584 | 1538531404 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 136 | a,b=map(int, input().split())
if a*b<1:print('Zero')
elif b>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,209,031 |
s039892123 | p04033 | u940102677 | 1538441255 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 197 | a, b = map(int, input().split())
if (a>0 and b<=0) or (a<=0 and b>0):
print("Zero")
exit()
if a>0:
print("Positive")
exit()
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,209,032 |
s321857845 | p04033 | u099918199 | 1538236706 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 300 | a,b = map(int, input().split())
if a < 0:
if b >= 0:
print("Zero")
else:
if (b-a) % 2 == 0:
print("Negative")
else:
print("Positive")
elif a == 0:
print("Zero")
else:
if 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,209,033 |
s023482911 | p04033 | u111421568 | 1538180282 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 167 | a, b = map(int, input().split())
if a > 0:
print('Positive')
elif b >= 0:
print('Zero')
elif (b-a) % 2 == 1:
print('Positive')
else:
print('Negative') | 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,034 |
s775193877 | p04033 | u177040005 | 1537569840 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 207 | a,b = map(int, input().split())
if 0 < a:
print('Positive')
elif a <= 0 <= b:
print('Zero')
else:
cnt = b - a + 1
if cnt%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,035 |
s239743192 | p04033 | u177398299 | 1537305546 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 206 | a, b = map(int, input().split())
if a == 0 or b == 0 or a < 0 < b:
print('Zero')
elif a > 0:
print('Positive')
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,036 |
s580647415 | p04033 | u932465688 | 1537224228 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 211 | 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('Positive')
elif (a <= 0 and b >= 0):
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,037 |
s543026218 | p04033 | u115682115 | 1537186049 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 164 | a,b = map(int,input().split())
if a>0 or abs(b-a)%2!=0:
print('Positive')
elif a<0 and b>0:
print('Zero')
elif b<0 and abs(b-a)%2==0:
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,038 |
s755632697 | p04033 | u366644013 | 1537054955 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 171 | na = lambda: list(map(int, input().split()))
a, b = na()
if a <= 0 <= b:
print("Zero")
elif a < 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,039 |
s932147391 | p04033 | u624475441 | 1536984989 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 147 | a, b = map(int, input().split())
if a * b <= 0:
print('Zero')
elif b < 0 and (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,209,040 |
s406857751 | p04033 | u745087332 | 1536953651 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 284 | # coding:utf-8
INF = float('inf')
def inpl(): return list(map(int, input().split()))
a, b = inpl()
if a > 0 and b > 0:
print('Positive')
elif a <= 0 and b >= 0:
print('Zero')
else:
if a % 2 + 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,209,041 |
s190127176 | p04033 | u017810624 | 1536947170 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 145 | a,b=map(int,input().split())
if a<=0 and 0<=b:print('Zero')
elif a>0: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,209,042 |
s633687138 | p04033 | u761989513 | 1536583806 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 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,209,043 |
s477238796 | p04033 | u790301364 | 1535766444 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 438 | def main20():
strbuf = input("");
strbufs = strbuf.split();
buf = [];
for i in range(2):
buf.append(int(strbufs[i]));
if buf[0] <= 0 and 0 <= buf[1]:
print("Zero");
elif buf[0] > 0:
print("Positive");
else:
kazu = buf[1] - buf[0] + 1;
if kazu % 2 == 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,209,044 |
s036683351 | p04033 | u562935282 | 1535233183 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 357 | def pn(x):
res = ''
if x > 0:
res = 'Positive'
elif x == 0:
res = 'Zero'
else:
res = 'Negative'
return res
a, b = map(int, input().split())
ans = ''
if a > 0:
ans = pn(1)
elif a <= 0 <= b:
ans = pn(0)
elif b < 0:
if (b - a + 1) % 2 == 0:
ans = pn(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,209,045 |
s998737598 | p04033 | u690536347 | 1535046264 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 177 | a,b=map(int,input().split())
if a*b<=0:
print("Zero")
else:
if a>0:
print("Positive")
else:
if (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,209,046 |
s427600787 | p04033 | u076564993 | 1534978304 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 172 | 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,209,047 |
s334124368 | p04033 | u807772568 | 1534260123 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 178 | a,b = map(int,input().split())
if a*b <= 0:
print("Zero")
elif a > 0 and b > 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,209,048 |
s173466452 | p04033 | u426964396 | 1533962123 | Python | Python (2.7.6) | py | Accepted | 10 | 2568 | 156 | a, b = map(int, raw_input().split())
if a * b < 0:
print 'Zero'
elif a + b < 0 and abs(a - b) & 1 == 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,049 |
s927969835 | p04033 | u005260772 | 1533962091 | Python | Python (2.7.6) | py | Accepted | 10 | 2568 | 156 | a, b = map(int, raw_input().split())
if a * b < 0:
print 'Zero'
elif a + b < 0 and abs(a - b) & 1 == 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,050 |
s903059293 | p04033 | u574050882 | 1533354991 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 240 | def main():
t = input().split(" ")
A = int(t[0])
B = int(t[1])
if B < 0:
if (B - A) % 2 == 1:
print("Positive")
else :
print("Negative")
elif 0 < A:
print("Positive")
else:
print("Zero")
main()
| 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,051 |
s043971805 | p04033 | u297574184 | 1533339669 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 148 | a, b = map(int, input().split())
if a * b < 0:
print('Zero')
elif b < 0 and (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,209,052 |
s820059437 | p04033 | u808427016 | 1533271669 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 217 | A, B = [int(_) for _ in input().split()]
if A <= 0 <= B:
print("Zero")
elif 0 < A:
print("Positive")
elif B < 0:
d = B - A
if d % 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,053 |
s830524468 | p04033 | u832039789 | 1532842035 | Python | Python (3.4.3) | py | Accepted | 16 | 2940 | 130 | a,b=map(int,input().split())
if a<=0<=b:
print('Zero')
elif (min(0,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,054 |
s899623868 | p04033 | u562935282 | 1532376706 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 292 | a, b = map(int, input().split())
if a * b <= 0:
print('Zero')#途中に0を挟む
elif a > 0:
print('Positive')#積は正
elif (b - a + 1) % 2 == 1:
print('Negative')#a,b区間は全て負の値で、その個数は奇数なので、積は負
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,055 |
s797997470 | p04033 | u627417051 | 1531459872 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 210 | a, b = list(map(int, input().split()))
if a == 0:
print("Zero")
elif a > 0:
print("Positive")
else:
if b >= 0:
print("Zero")
else:
if (b - a) % 2 == 0:
print("Negative")
else:
print("Positive")
| 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,056 |
s417249536 | p04033 | u333945892 | 1531155743 | Python | Python (3.4.3) | py | Accepted | 29 | 3896 | 297 | from collections import defaultdict
import sys,heapq,bisect,math,itertools,string
a,b = map(int,input().split())
if a == 0 or b == 0:
print('Zero')
elif 0 < b:
if a < 0 :
print('Zero')
else:
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,209,057 |
s221981312 | p04033 | u608088992 | 1530792780 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 204 | a, b = map(int, input().split())
if a <= 0 and b >= 0:
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,209,058 |
s080679251 | p04033 | u957084285 | 1529900252 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 150 | a, b = map(int, input().split())
ans = "Positive"
if a*b <= 0:
ans = "Zero"
elif b < 0:
if (b-a)%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,209,059 |
s498401738 | p04033 | u218843509 | 1529727731 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 175 | a, b = map(int, input().split())
if a <= 0 and 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,209,060 |
s439119560 | p04033 | u272266919 | 1529712568 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 192 | a,b = list(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,209,061 |
s025924992 | p04033 | u306142032 | 1529067588 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 209 | a, b = map(int, input().split())
nega_cnt = 0
is_zero = False
if a * b < 0:
print("Zero")
is_zero = True
elif b < 0 and (a-b) % 2 == 0:
print("Negative")
else:
print("Positive") | 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,062 |
s132507119 | p04033 | u136090046 | 1529036195 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 365 | a, b = map(int, input().split())
if a <= 0 and b >= 0:
print("Zero")
elif a <= 0 and b <= 0:
if a == 0 or b == 0:
print("Zero")
else:
if abs(b-a) % 2 == 0:
print("Negative")
else:
print("Positive")
elif a >= 0 and b >= 0:
if a == 0 or b == 0:
prin... | 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,063 |
s431570131 | p04033 | u136395536 | 1528644364 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 208 | a,b = (int(i) for i in input().split())
if 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("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,064 |
s494113627 | p04033 | u327248573 | 1528407525 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 164 | a, b = map(int, input().split(' '))
if a * b <= 0:
print('Zero')
elif abs(abs(a) - abs(b)) % 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,065 |
s311167214 | p04033 | u032656452 | 1528275027 | Python | Python (3.4.3) | py | Accepted | 21 | 3316 | 161 | a, b = input().split(' ')
a, b = int(a), int(b)
if a <= 0 and 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,066 |
s148726519 | p04033 | u813450984 | 1528053268 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 195 | a, b = map(int, input().split())
if a < b < 0:
if (abs(a - b) + 1) % 2 == 0:
print('Positive')
else:
print('Negative')
elif a < 0 < b:
print('Zero')
elif 0 < a:
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,067 |
s928866422 | p04033 | u103539599 | 1527708230 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 246 | a,b = list(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:
if (abs(a) - abs(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,068 |
s987218422 | p04033 | u952708174 | 1527702344 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 404 | def a_range_product(A, B):
ans = ''
if A * B <= 0:
ans = 'Zero' # 区間 [A,B] の内部に必ず0を含む
else:
if A > 0:
ans = 'Positive' # A>0ならB>0
else: # A<0,B<0のときここを通る
ans = 'Negative' if abs(B - A + 1) % 2 == 1 else 'Positive'
return ans
A, B = [int(i) for i in inp... | 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,069 |
s629025862 | p04033 | u952708174 | 1526913626 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 213 | 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')
elif 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,209,070 |
s816716729 | p04033 | u354638986 | 1526858688 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 282 | def main():
a, b = map(int, input().split())
if 0 < a:
print("Positive")
elif 0 <= b:
print("Zero")
else:
if (b-a+1) % 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,209,071 |
s529771672 | p04033 | u772180901 | 1526838065 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 240 | a, b = map(int,input().split())
if (a and b) < 0:
if (abs(a - b) + 1) % 2 == 0:
print('Positive')
else:
print('Negative')
elif (a >= 0 and b <= 0) or (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,209,072 |
s371525676 | p04033 | u102126195 | 1526828137 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 214 | a, b = map(int, input().split())
if a <= 0 and 0 <= b:
print("Zero")
elif a < 0 and b < 0:
if (b - a + 1) % 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,209,073 |
s860518184 | p04033 | u828847847 | 1526778629 | Python | Python (2.7.6) | py | Accepted | 10 | 2568 | 135 | n,m = map(int,raw_input().split())
if n*m < 0 :
print 'Zero'
elif n+m< 0 and abs(n-m)%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,074 |
s979903539 | p04033 | u186426563 | 1526413685 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 170 | a, b = map(int, input().split())
ans = 'Positive'
if(a <= 0 <= b):
ans = 'Zero'
elif(0 < a):
ans = 'Positive'
elif((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,209,075 |
s320133286 | p04033 | u846150137 | 1526298237 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 140 | a,b=[int(i) for i in input().split()]
if a * b <=0:
print("Zero")
elif a >= 1 or (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,209,076 |
s652346665 | p04033 | u304608668 | 1526079724 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 223 | a, b = input().split()
a, b = int(a), int(b)
if a < 0 < b:
print("Zero")
elif 0 < a < b:
print("Positive")
elif a < b < 0:
if (b - a + 1) % 2 == 0:
print("Positive")
else:
print("Negative")
| 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,077 |
s460455642 | p04033 | u143492911 | 1526075565 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 213 | a,b=map(int,input().split())
if a<=0<=b:
print("Zero")
elif 0<a and 0<b:
print("Positive")
elif a<0 and b<0 and (b-a+1)%2==0:
print("Positive")
elif a<0 and b<0 and (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,209,078 |
s462541638 | p04033 | u766407523 | 1525833696 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 168 | a, b = map(int, input().split())
if a>0:
print('Positive')
elif b >= 0:
print('Zero')
elif (min(0, 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,079 |
s059360244 | p04033 | u520158330 | 1524852741 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 155 | a,b = map(int,input().split())
if a*b<=0:
print("Zero")
elif a<0 and b<0 and len(range(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,209,080 |
s527693022 | p04033 | u856232850 | 1524786805 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 220 | a,b = list(map(int,input().split()))
if a<=0 and 0 <= b:
print('Zero')
elif a >0 and b > 0:
print('Positive')
else:
n = abs(a-b)
if n%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,081 |
s132763811 | p04033 | u226108478 | 1524761291 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 298 | # -*- coding: utf-8 -*-
# AtCoder Grand Contest
# Problem A
if __name__ == '__main__':
a, b = list(map(int, input().split()))
if a * b <= 0:
print('Zero')
elif (a >= 1) or ((b <= -1) and ((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,209,082 |
s152551778 | p04033 | u226108478 | 1524760731 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 343 | # -*- coding: utf-8 -*-
# AtCoder Grand Contest
# Problem A
if __name__ == '__main__':
a, b = list(map(int, input().split()))
if a >= 1:
print('Positive')
elif a * b <= 0:
print('Zero')
elif b <= -1:
if (a - b + 1) % 2 == 0:
print('Positive')
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,209,083 |
s389243997 | p04033 | u192442087 | 1524664615 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 250 | a,b = list(map(int,input().split()))
if( a > b ):
a,b = b,a
if a > 0 and b > 0:
print("Positive")
elif a <= 0 and b >= 0:
print("Zero")
else:
if (abs(a) - abs(b)) % 2 == 0:
print("Negative")
else:
print("Positive") | 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,084 |
s645367422 | p04033 | u257974487 | 1524629050 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 216 | a, b = map(int,input().split())
if a > 0:
print("Positive")
elif a == 0 or b == 0 or 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,209,085 |
s491891136 | p04033 | u532502139 | 1524278093 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 313 | a, b = [int(x) for x in input().split()]
if a > 0 and b > 0:
print('Positive')
elif a == 0 or b == 0:
print('Zero')
elif a < 0 and b < 0:
if (b - a) % 2 == 0:
print('Negative')
else:
print('Positive')
elif a > 0 and b < 0:
print('Zero')
elif a < 0 and b > 0:
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,086 |
s661370173 | p04033 | u388927326 | 1524226247 | Python | Python (3.4.3) | py | Accepted | 22 | 3444 | 426 | #!/usr/bin/env python3
import sys, math, copy
# import fractions, itertools
# import numpy as np
# import scipy
HUGE = 2147483647
HUGEL = 9223372036854775807
ABC = "abcdefghijklmnopqrstuvwxyz"
def main():
a, b = map(int, input().split())
if a <= 0 and b >= 0:
return "Zero"
elif a > 0:
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,209,087 |
s692676840 | p04033 | u200239931 | 1523834981 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 771 | import math
import sys
def getinputdata():
# 配列初期化
array_result = []
data = input()
array_result.append(data.split(" "))
flg = True
try:
while flg:
data = input()
array_temp = []
if(data != ""):
array_result.... | 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,088 |
s019576146 | p04033 | u294000907 | 1523416478 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 234 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# 数 値 読 み 込 み
a,b = [int(i) for i in input().split()]
if 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,209,089 |
s047695352 | p04033 | u636387751 | 1522954599 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 189 | a, b = map(int, input().split())
if b < 0:
if (b-a) % 2 == 0:
print("Negative")
else:
print("Positive")
elif a*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,209,090 |
s250288959 | p04033 | u875361824 | 1522754479 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 345 | def main():
a, b = map(int, input().split())
if a <= 0 <= b:
ans = "Zero"
elif a > 0:
ans = "Positive"
elif b < 0:
ans = "Negative"
c = b - a
# a == bのとき負が2個
if c == 0 or c % 2 == 1:
ans = "Positive"
print(ans)
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,209,091 |
s476269336 | p04033 | u075012704 | 1522611215 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 204 | a, b = map(int, input().split())
if a <= 0 <= b:
print("Zero")
elif 0 < a and 0 < b:
print("Positive")
else:
if abs(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,092 |
s110260290 | p04033 | u729707098 | 1522444083 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 179 | a,b = (int(i) for i in input().split())
if a*b<=0: answer = "Zero"
elif a>0: answer = "Positive"
else:
if (b-a)%2==0: answer = "Negative"
else: answer = "Positive"
print(answer) | 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,093 |
s663143935 | p04033 | u985076807 | 1522299982 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 212 | a, b = map(int, input().split())
if a <= 0 <= b:
print('Zero')
elif 0 < a < b:
print('Positive')
elif a <= b < 0:
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,209,094 |
s320105295 | p04033 | u985076807 | 1522299865 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 234 | a, b = map(int, input().split())
if a <= 0 <= b:
print('Zero')
elif 0 < a < b:
print('Positive')
elif a <= b < 0:
a *= -1
b *= -1
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,209,095 |
s676977761 | p04033 | u521992338 | 1522294782 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 234 | a, b = map(int, input().split())
res = ''
if a > 0:
res = 'Positive'
elif a < 0:
if b < 0:
res = 'Positive' if abs(b - a + 1) % 2 == 0 else 'Negative'
else:
res = 'Zero'
else:
res = 'Zero'
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,209,096 |
s470774190 | p04033 | u075012704 | 1522101611 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 216 | a, b = map(int, input().split())
cnt = abs(b-a)+1
if (a == 0) or (b==0) or ((a < 0) & (b > 0)):
print("Zero")
elif a > 0:
print("Positive")
elif cnt % 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,097 |
s349277788 | p04033 | u553348533 | 1521703319 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 227 | a,b = map(int,input().split())
# main
if (a <= 0 <= b) or a == 0 or b == 0:
ans = "Zero"
elif b < 0:
if (b - a) % 2 == 1:
ans = "Positive"
else:
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,209,098 |
s567065656 | p04033 | u941884460 | 1521601580 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 138 | 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,209,099 |
s572410625 | p04033 | u030726788 | 1521596214 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 185 | a,b=map(int,input().split())
if(a>0):print("Positive")
elif(a==0):print("Zero")
else:
if(b>=0):print("Zero")
else:
if((b-a+1)%2==0):print("Positive")
else:print("Negative")
| 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,100 |
s211700176 | p04033 | u667024514 | 1521517460 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 261 | a, b = map(int, input().split())
def solve(a, b):
if (a < 0 and b > 0) or a == 0 or b == 0:
return 'Zero'
if a > 0:
return 'Positive'
if (b - a) % 2:
return 'Positive'
else:
return 'Negative'
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,209,101 |
s975812167 | p04033 | u562016607 | 1519483818 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 246 | a, b = map(int, input().split())
if a>0:
print("Positive")
elif a == 0:
print("Zero")
else:
if b >= 0:
print("Zero")
else:
if (b-a)%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,102 |
s675482187 | p04033 | u391475811 | 1519097585 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 181 | a,b=map(int,input().split())
if a<=0 and b>=0:
print("Zero")
elif b<0:
c=abs(a)-abs(b)
if c%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,209,103 |
s488056629 | p04033 | u237316771 | 1518295435 | Python | Python (2.7.6) | py | Accepted | 11 | 2568 | 141 | a, b = [int(x) for x in raw_input().split()]
if a * b <= 0:
print "Zero"
else:
print ["Negative", "Positive"][a > 0 or (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,209,104 |
s560526790 | p04033 | u367393577 | 1517812612 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 284 | def solve():
a, b = list(map(int, input().split(" ")))
if 0 < a <= b:
print("Positive")
elif a <= b < 0:
if (b-a)%2==1:
print("Positive")
else:
print("Negative")
elif a < 0 < b:
print("Zero")
return
solve() | 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,105 |
s423106859 | p04033 | u482969053 | 1516582434 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 284 | def solve():
a, b = list(map(int, input().split(" ")))
if 0 < a <= b:
print("Positive")
elif a <= b < 0:
if (b-a)%2==1:
print("Positive")
else:
print("Negative")
elif a < 0 < b:
print("Zero")
return
solve()
| 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,106 |
s948192482 | p04033 | u284102701 | 1516073796 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 164 | a,b=map(int,input().split())
if a>0:
print("Positive")
elif b<0:
if abs(b-a)%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,209,107 |
s809187107 | p04033 | u761320129 | 1515684586 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 171 | a,b = map(int,input().split())
if a > 0:
print('Positive')
exit()
if b >= 0:
print('Zero')
exit()
l = b-a + 1
print('Positive' if l%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,209,108 |
s585390725 | p04033 | u858748695 | 1515557813 | Python | Python (3.4.3) | py | Accepted | 20 | 3060 | 179 | #!/usr/bin/env python3
a, b = map(int, input().split())
ans = 1
if a <= 0 <= b:
ans = 0
elif b < 0:
ans = (b - a + 1) % 2 + 1
print(('Zero', 'Positive', 'Negative')[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,209,109 |
s474223348 | p04033 | u136090046 | 1515545428 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 218 | s, e = map(int, input().split())
if s < 0 and e < 0:
print("Positive" if abs(e-s) %2 == 1 else "Negative")
elif (s < 0 and e > 0) or (s > 0 and e < 0):
print("Zero")
elif s > 0 and e > 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,110 |
s833702966 | p04033 | u667084803 | 1515266927 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 155 | a, b= map(int,input().split())
if a*b <=0: print("Zero")
elif a>0: print("Positive")
elif (min(b+1,0)-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,209,111 |
s600520484 | p04033 | u536081558 | 1509565578 | Python | Python (2.7.6) | py | Accepted | 11 | 2568 | 146 | a, b = map(int, raw_input().split())
if a <= 0 and 0 <= b:
print 'Zero'
elif a > 0 or (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,112 |
s269763078 | p04033 | u309605945 | 1508464648 | Python | Python (2.7.6) | py | Accepted | 12 | 2568 | 168 | a, b = map(int, raw_input().split())
if (a <= 0 and b >= 0):
print "Zero"
else:
if (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,209,113 |
s216262434 | p04033 | u190952243 | 1507766408 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 136 | a,b=map(int,input().split(' '))
if a<=0 and 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,114 |
s334776831 | p04033 | u840684628 | 1507676510 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 200 | n, m = (int(i) for i in input().split())
if n > 0:
print("Positive")
exit(0)
if m >= 0:
print("Zero")
exit(0)
if (m - n) % 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,115 |
s165798248 | p04033 | u663710122 | 1507675148 | 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 (-a + b + 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,209,116 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.