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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s437608300 | p04033 | u814986259 | 1576589993 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 137 | a,b=map(int,input().split())
if a*b<0:
print("Zero")
else:
if 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,208,717 |
s579578410 | p04033 | u598229387 | 1576560748 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 173 | a,b=map(int,input().split())
if a>0:
ans="Positive"
elif a==0:
ans="Zero"
elif b>=0:
ans="Zero"
else:
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,718 |
s782780305 | p04033 | u617515020 | 1576552262 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 177 | a,b=map(int,input().split())
if a>0:
ans = "Positive"
if a<=0 and b>=0:
ans = "Zero"
if b<0:
if (b-a+1)%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,719 |
s786166634 | p04033 | u007886915 | 1576354011 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 798 | # -*- coding: utf-8 -*-
import sys
import itertools#これは色々使える組み込み関数みたいなやつ
import math#数学的計算はこれでいける。普通に0.5乗しても計算可能
#N = int(input())
#t, x, y = [0]*(N+1), [0]*(N+1), [0]*(N+1)#N+1個の空のリストを作成(原点を入れて##るから一つ増える)
#delta_t=0
#delta_x=0
#delta_y=0
#l=0
#t[0],x[0],y[0]=[0, 0, 0]
#とりあえず入力までは完成した.
#for i in range(N):
# t[i+1], x[... | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <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,720 |
s643928594 | p04033 | u475503988 | 1576275526 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 142 | a, b = map(int, input().split())
if a * b <= 0:
print("Zero")
elif a < 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,208,721 |
s065550127 | p04033 | u824237520 | 1576264091 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 198 | 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,722 |
s384268502 | p04033 | u815878613 | 1576179825 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 207 | a, b = map(int, input().split())
if a <= 0 <= b:
ans = "Zero"
elif 0 < a < b:
ans = "Positive"
else:
if (b - a) % 2 == 1:
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,723 |
s694808299 | p04033 | u183896397 | 1576125288 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 241 | a,b = map(int,input().split())
if a < 0 and b < 0:
if (b - a + 1) % 2 == 0:
print('Positive')
else:
print('Negative')
elif (a < 0 and b > 0) or (a == 0 or b == 0):
print('Zero')
else:
print('Positive')
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <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,724 |
s451804815 | p04033 | u113971909 | 1576117700 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 182 | a,b=map(int,input().split())
a=min(1,a)
b=min(1,b)
if b==1 and a<=0:
print('Zero')
elif b==0:
print('Zero')
elif (b-a)%2==0 and b<0:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <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,725 |
s936947528 | p04033 | u989345508 | 1575988102 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 209 | a,b=map(int,input().split())
if a>0 and b>0:
print("Positive")
elif a==0 or b==0 or (a<0 and 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,726 |
s712269638 | p04033 | u728615412 | 1575925317 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 178 | a,b = map(int,input().split())
if b < 0:
if abs(a-b)%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,727 |
s034783572 | p04033 | u123824541 | 1575834994 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 278 | a, b = map(int, input().split())
if a <= 0 and b >= 0:
print("Zero")
else:
if a > 0 and b > 0:
print("Positive")
else:
c = abs(b - a + 1)
if c % 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,728 |
s873322797 | p04033 | u066455063 | 1575775330 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 221 | a, b = map(int, input().split())
if a > 0 and b > 0:
print("Positive")
elif a < 0 and b < 0:
if (abs(a) - abs(b)) % 2 == 0:
print("Negative")
else:
print("Positive")
else:
print("Zero")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <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,729 |
s259272144 | p04033 | u174434198 | 1575653367 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 172 | a, b = map(int, input().split())
if a<= 0 and 0 <= b:
print('Zero')
elif 0 < a:
print('Positive')
elif (b-a+1) % 2==0:
print('Positive')
else:
print('Negative') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,730 |
s734604626 | p04033 | u252828980 | 1575602777 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 211 | a,b = map(int,input().split())
if a > 0:
print("Positive")
elif b < 0 and (b-a+1)%2 == 1:
print("Negative")
elif b < 0 and (b-a+1)%2 == 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,208,731 |
s432781087 | p04033 | u762420987 | 1575554853 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 250 | a, b = map(int, input().split())
if a > 0 and b > 0:
print("Positive")
elif a == 0 or b == 0 or (a * b < 0):
print("Zero")
elif a < 0 and b < 1:
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,208,732 |
s710362548 | p04033 | u386819480 | 1575435623 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 644 | #!/usr/bin/env python3
import sys
sys.setrecursionlimit(10000000)
INF = 1<<32
def solve(a: int, b: int):
if a < 0 and b < 0:
if (abs(a)-abs(b)+1)%2 == 0:
print("Positive")
else:
print("Negative")
elif a > 0 and b > 0:
print("Positive")
else:
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,733 |
s353380418 | p04033 | u488127128 | 1575151555 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 296 | # coding: utf-8
def main():
a, b = map(int, input().split())
if a > 0:
print('Positive')
elif b >= 0:
print('Zero')
else:
if (b-a+1) % 2 == 0:
print('Positive')
else:
print('Negative')
if __name__ == '__main__':
main() | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <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,734 |
s109861425 | p04033 | u503228842 | 1575103371 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 145 | a,b = map(int,input().split())
if a<=0 and b>=0:
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,208,735 |
s150054373 | p04033 | u511449169 | 1575056633 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 152 | a, b = map(int, input().split())
if a <= 0 and b > 0:
print('Zero')
elif b < 0 and 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,736 |
s649220313 | p04033 | u073852194 | 1574891124 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 162 | a,b = map(int,input().split())
if a > 0:
print('Positive')
elif 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,737 |
s447485949 | p04033 | u819225206 | 1574885419 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 184 | a,b = map(int,input().split())
if a>0:
print("Positive")
elif a<=0<=b:
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,738 |
s818587535 | p04033 | u746419473 | 1574805888 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 165 | a, b = map(int, input().split())
if a <= 0 <= b or b <= 0 <= a:
print("Zero")
else:
print("Negative" if a < 0 and b < 0 and (abs(a-b)+1)%2 else "Positive")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,739 |
s422113743 | p04033 | u754022296 | 1574741306 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 162 | a, b = map(int, input().split())
if b < 0:
if (b-a)%2:
print("Positive")
else:
print("Negative")
elif a > 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,740 |
s951708579 | p04033 | u995109095 | 1574666312 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 346 | import sys
# import numpy as np
def main():
a, b = map(int, sys.stdin.read().split())
if 0 < a:
ans = 'Positive'
elif 0 <= b:
ans = 'Zero'
else:
if (b - a + 1) % 2 == 0:
ans = 'Positive'
else:
ans = 'Negative'
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,741 |
s498168048 | p04033 | u254871849 | 1574619081 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 371 | # 2019-11-24 12:12:53(JST)
import sys
# import numpy as np
def main():
a, b = map(int, sys.stdin.read().split())
if 0 < a:
ans = 'Positive'
elif 0 <= b:
ans = 'Zero'
else:
if (b - a + 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,742 |
s512156073 | p04033 | u597455618 | 1574558964 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 150 | a, b = map(int, input().split())
if a<=0 and 0<=b:
print("Zero")
elif a < 0 and min(b-a,-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,743 |
s194115611 | p04033 | u094191970 | 1574399883 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 183 | a,b=map(int,input().split())
if a<=0 and 0<=b:
print('Zero')
elif a>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,744 |
s548064705 | p04033 | u936985471 | 1574056390 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 164 | a,b=map(int,input().split())
if a>0:
print("Positive")
elif a*b<=0:
print("Zero")
else:
if abs(b-a)%2==0:
print("Negative")
else:
print("Positive")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,745 |
s837473793 | p04033 | u089032001 | 1574018860 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 214 | def inpl():
return list(map(int, input().split()))
a, b = inpl()
if a <= 0 and b >= 0:
print('Zero')
elif a > 0:
print('Positive')
else:
print('Positive' if (b - a + 1) % 2 == 0 else 'Negative')
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,746 |
s334085316 | p04033 | u495699318 | 1573865653 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 152 | a,b=map(int,input().split())
if(a<0<b):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,747 |
s040258959 | p04033 | u727787724 | 1573632871 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 180 | # coding: utf-8
# Your code here!
a,b=map(int,input().split())
if a<0 and b<0 and (b-a)%2==0:
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,748 |
s624650587 | p04033 | u346395915 | 1573531300 | Python | Python (3.4.3) | py | Accepted | 16 | 3060 | 227 | a,b = map(int,input().split())
if a <= 0 and b >= 0:
print("Zero")
exit()
if a > 0:
print("Positive")
exit()
res = min(0,b) - min(0,a) + 1
if res%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,749 |
s353332046 | p04033 | u897328029 | 1573505669 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 237 | #!/usr/bin/env python3
a, b = list(map(int, input().split()))
if a <= 0 <= b:
r = "Zero"
elif a > 0:
r = "Positive"
else:
if (b - a + 1) % 2 == 0:
r = "Positive"
else:
r = "Negative"
ans = r
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,750 |
s523323638 | p04033 | u186838327 | 1573199799 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 190 | a, b = map(int, input().split())
if a > 0 and b > 0:
print('Positive')
elif a < 0 and b < 0:
if (b-a+1)%2 == 0:
print('Positive')
else:
print('Negative')
else:
print('Zero') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <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,751 |
s170605129 | p04033 | u379959788 | 1573077891 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 204 | a, b = map(int, input().split())
if a * b <= 0:
ans = "Zero"
elif a > 0:
ans = "Positive"
else:
if (b - a + 1) % 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,752 |
s442595081 | p04033 | u798818115 | 1573010507 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 166 | a,b=map(int,input().split())
if a*b<=0:
print("Zero")
exit()
elif a<0 and b<0:
if (b-a)%2==0:
print("Negative")
exit()
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,753 |
s932326491 | p04033 | u852367841 | 1572377776 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 202 | a, b = map(int, input().split())
if a <= 0 and 0 <= b:
print('Zero')
elif 0 < 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,754 |
s771752335 | p04033 | u374531474 | 1572154856 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 168 | a, b = map(int, input().split())
if a <= 0 <= b:
ans = 'Zero'
elif 0 < a or b < 0 and (b - a) % 2 == 1:
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,755 |
s417261666 | p04033 | u432853936 | 1571982430 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 164 | a,b = map(int,input().split())
if a <= 0 and b >=0:
print("Zero")
elif a < 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,756 |
s504699261 | p04033 | u376099073 | 1571928775 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 195 | a,b = map(int,input().split())
x = b-a
if a<=0 and b>=0:
print("Zero")
elif b<0:
if x%2==0:
print("Negative")
else:
print("Positive")
else:
print("Positive")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,757 |
s959946995 | p04033 | u945181840 | 1571596122 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 198 | a, b = map(int, input().split())
if a <= 0 <= b:
print('Zero')
elif 0 < a:
print('Positive')
else:
if (b - a + 1) % 2 == 0:
print('Positive')
else:
print('Negative') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,758 |
s111703507 | p04033 | u644360640 | 1571344024 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 226 | a,b = map(int,input().split())
if a > 0:
print('Positive')
else:
if b < 0:
if ((-1*a)-(-1*b)+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,759 |
s427480865 | p04033 | u311379832 | 1570936747 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 230 | import sys
a, b = map(int, input().split())
cnt = 0
if a <= 0 and 0 < b:
print('Zero')
sys.exit()
if b <= 0:
cnt = abs(a - b) + 1
ans = ''
if cnt % 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,760 |
s581139503 | p04033 | u105124953 | 1570761680 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 201 | import sys
a,b = map(int,input().split())
if a > 0:
print('Positive')
sys.exit()
if b >= 0:
print('Zero')
sys.exit()
if (b-a+1)%2 == 1:
print('Negative')
else:
print('Positive') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,761 |
s164714365 | p04033 | u392319141 | 1570705323 | 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,208,762 |
s374185572 | p04033 | u042802884 | 1570669954 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 154 | a,b=map(int,input().split())
if a>0:
ans='Positive'
elif a<=0<=b:
ans='Zero'
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,763 |
s945618354 | p04033 | u131406572 | 1570653386 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 191 | a,b=map(int,input().split())
n=b-a+1
if a<=0 and b>=0:
print("Zero")
elif a<0:
if n%2==0:
print("Positive")
else:
print("Negative")
elif b>0:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,764 |
s566633138 | p04033 | u937642029 | 1570541990 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 197 | a,b = map(int,input().split())
ans=["Positive", "Negative", "Zero"]
if a > 0:
print(ans[0])
elif a<=0 and b>=0:
print(ans[2])
elif (b-a)%2 == 0:
print(ans[1])
else:
print(ans[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,765 |
s862612356 | p04033 | u197955752 | 1570311545 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 229 | a, b = input().split()
a, b = [int(a), int(b)]
if b < 0:
if (b - a + 1) % 2 == 0:
result = 'Positive'
else:
result = 'Negative'
elif 0 < a:
result = 'Positive'
else:
result = 'Zero'
print(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,208,766 |
s742308613 | p04033 | u322354465 | 1570304279 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 200 | a, b = map(int, input().split())
if 0 < a:
print("Positive")
elif a <= 0 <= b:
print("Zero")
else:
if (b - (a - 1)) % 2 == 0:
print("Positive")
else:
print("Negative")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,767 |
s499630035 | p04033 | u503111914 | 1570252916 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 196 | a,b = map(int,input().split())
if a <= 0 and b >= 0 or a >= 0 and b <= 0 or a == 0 or b == 0:
print("Zero")
elif a > 0 and b > 0 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,208,768 |
s584106256 | p04033 | u377989038 | 1570176084 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 164 | a, b = map(int, input().split())
if a > 0:
print("Positive")
elif b < 0:
print("Negative" if (abs(a - b)) % 2 == 0 else "Positive")
else:
print("Zero") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <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,769 |
s738500773 | p04033 | u183840468 | 1570115612 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 177 | a,b = [int(i) for i in input().split()]
if a >= 0:
print('Positive')
elif b >= 0:
print('Zero')
elif (b -a +1)%2 == 0:
print('Positive')
else:
print('Negative') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,770 |
s935438367 | p04033 | u948524308 | 1569886814 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 229 | a,b=map(int,input().split())
if a<0 and b<0:
if (b-a+1)%2==1:
print("Negative")
else:
print("Positive")
elif a==0 or b==0:
print("Zero")
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,771 |
s108537809 | p04033 | u625963200 | 1569868006 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 164 | a,b=map(int,input().split())
if a<=0<=b:
print('Zero')
elif 0<a:
print('Positive')
else:
if (b-a+1)%2==1:
print('Negative')
else:
print('Positive') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,772 |
s837369632 | p04033 | u215315599 | 1569799308 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 221 | import sys
import os
a, b = map(int,input().split())
if a*b <= 0:
print("Zero")
sys.exit()
if a > 0 and b > 0:
print("Positive")
sys.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,208,773 |
s122185254 | p04033 | u390883247 | 1569757667 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 211 | a,b = map(int,input().split())
if a == 0 or b == 0 or a*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,208,774 |
s995421330 | p04033 | u120691615 | 1569630048 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 208 | a,b = map(int,input().split())
if a > 0 and b > 0:
print("Positive")
elif a <= 0 and b >= 0:
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,775 |
s925357693 | p04033 | u871890105 | 1569598396 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 211 | a, b = map(int, input().split())
if a <= 0 and b >= 0:
print('Zero')
elif a > 0:
print('Positive')
elif b < 0:
if (b - a + 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,776 |
s067233639 | p04033 | u296518383 | 1569590428 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 201 | 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:
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,777 |
s382078475 | p04033 | u668503853 | 1569557623 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 157 | a,b=map(int,input().split())
if a<=0 and 0<=b:
print("Zero")
elif b<0:
if (b-a)%2==0:print("Negative")
else:print("Positive")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,778 |
s643900189 | p04033 | u668503853 | 1569557454 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 175 | a,b=map(int,input().split())
if a<=0 and 0<=b:
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,208,779 |
s276705347 | p04033 | u811000506 | 1569462825 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 213 | a,b = map(int,input().split())
if a<0 and b<0:
if abs(a-b)%2==0:
print("Negative")
else:
print("Positive")
elif (a<0 and b>=0) or a==0 or 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,780 |
s007286396 | p04033 | u077291787 | 1569148317 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 264 | # AGC002A - Range Product
def main():
A, B = map(int, input().split())
if A <= 0 <= B:
print("Zero")
else:
flg = 0 < A or (abs(A - B) + 1) % 2 == 0
print("Positive" if flg else "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,781 |
s639116763 | p04033 | u941438707 | 1569019530 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 150 | a,b=map(int,input().split())
ans="Positive"
if a<=0 and b>=0:
ans="Zero"
elif a<0:
if (a-min(0,b)+1)%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,782 |
s878950444 | p04033 | u792670114 | 1568659915 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 170 | a, b = map(int, input().split())
if a > 0:
print("Positive")
elif b < 0:
if (b-a+1)%2 == 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,208,783 |
s559469203 | p04033 | u347640436 | 1568606583 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 183 | a, b = map(int, input().split())
if a <= 0 and b >= 0:
print('Zero')
elif a > 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,784 |
s059346564 | p04033 | u787456042 | 1568471943 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 116 | a,b=map(int,input().split())
if a<=0<=b:print("Zero")
elif(b-a)%2==0and b<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,785 |
s772993164 | p04033 | u693694535 | 1568254438 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 212 | a,b=map(int,input().split())
if a<=0 and b>=0:
print('Zero')
elif a>0 and b>0:
print('Positive')
elif a<0 and b<0:
if ((-a)-(-b)+1)%2==0:
print("Positive")
else:
print("Negative")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <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,786 |
s620421409 | p04033 | u403301154 | 1568173729 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 176 | a, b = list(map(int, input().split()))
if a>0 and b>0:
print("Positive")
elif a<=0<=b:
print("Zero")
else:
if (b-a)%2:
print("Positive")
else:
print("Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,787 |
s466755245 | p04033 | u879309973 | 1568123006 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 238 | def solve(a, b):
if (a * b < 0) or (a == 0) or (b == 0):
return "Zero"
elif (a < 0) and ((a-b+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,788 |
s795031811 | p04033 | u802963389 | 1568110950 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 214 | a, b = map(int, input().split())
if a <= 0 <= b:
print("Zero")
elif b < 0:
negativeCount = b - a + 1
if negativeCount % 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,789 |
s982394701 | p04033 | u076917070 | 1568091694 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 300 | import sys
input=sys.stdin.readline
def main():
a,b = map(int,input().split())
if a<=0 and 0<=b:
print("Zero")
return
elif a<0 and b<0:
if (b-a)%2 == 0:
print("Negative")
return
print("Positive")
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,790 |
s904905205 | p04033 | u396495667 | 1568043217 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 168 | a, b = map(int, input().split())
if a>0 and b>0:
print('Positive')
elif a <= 0 and b >=0:
print('Zero')
else:
print('Positive' if (b-a +1)%2 ==0 else 'Negative') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,791 |
s453596258 | p04033 | u777283665 | 1567961907 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 266 | a, b = map(int, input().split())
if a <= 0 and b >= 0:
print("Zero")
elif a > 0 and b > 0:
print("Positive")
elif a < 0 and b < 0:
if a == b:
print("Positive")
elif abs(a-b) % 2 == 1:
print("Positive")
elif abs(a-b) % 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,208,792 |
s450569411 | p04033 | u147571984 | 1567738645 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 191 | a,b = map(int, input().split())
if a <= 0 <= b :
print('Zero')
elif 0 < 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,793 |
s995115573 | p04033 | u374802266 | 1567703042 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 201 | a=list(map(int,input().split()))
a,b=a[0],a[1]
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,208,794 |
s708459867 | p04033 | u993622994 | 1567692724 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 221 | a, b = map(int, input().split())
num = abs(b - a + 1)
if a <= 0 <= b:
print('Zero')
elif a < 0 and b < 0:
if num % 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,795 |
s183362075 | p04033 | u410118019 | 1567655215 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 168 | a,b = map(int,input().split())
if b < 0:
if (b-a) % 2 == 0:
print('Negative')
else:
print('Positive')
elif a <= 0:
print('Zero')
else:
print('Positive') | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,796 |
s709139213 | p04033 | u794250528 | 1567605300 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 306 | a, b = map(int, input().split())
# a - b - 0 -> n or p
# a - 0 - b -> zero
# 0 - a - b -> p
def main():
if a <= 0 <= b:
return 'Zero'
if 1 <= a:
return 'Positive'
c = b - a + 1
if c % 2 == 0:
return 'Positive'
else:
return 'Negative'
print(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,797 |
s545131143 | p04033 | u131634965 | 1567581028 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 186 | a,b=map(int, input().split())
if a>0:
print("Positive")
else:
if 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,798 |
s840952865 | p04033 | u396391104 | 1567541383 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 152 | a,b = map(int,input().split())
if a*b <= 0:
print("Zero")
elif a > 0:
print("Positive")
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,799 |
s080797358 | p04033 | u116002573 | 1567107603 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 339 | def main():
a, b = map(int, input().split())
if a > 0: # a, b > 0
return "Positive"
elif b >=0 and a <=0: # a <= 0 <= b
return "Zero"
else: # a < 0 and b < 0
if (b-a+1) % 2 == 0:
return "Positive"
else:
return "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,800 |
s198407544 | p04033 | u703890795 | 1567064091 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 168 | a, b = map(int, 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,801 |
s849634498 | p04033 | u430223993 | 1566995929 | Python | Python (3.4.3) | py | Accepted | 19 | 3064 | 211 | a, b = map(int, input().split())
if 0 < a:
print('Positive')
elif a < 0 < b or a == 0 or 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,802 |
s754289176 | p04033 | u266874640 | 1566312159 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 254 | a, b = map(int,input().split())
if a > 0 and b > 0:
print('Positive')
if a > 0 and b < 0:
print('Zero')
if a < 0 and b > 0:
print('Zero')
if 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,803 |
s665277706 | p04033 | u265768297 | 1566170826 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 232 | a,b=map(int,input().split())
if a<0:
if b>=0:
print("Zero")
else:
num=int(b-a+1) #偶数なら正
print("Positive" if num%2==0 else "Negative")
elif a==0:
print("Zero")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,804 |
s437747650 | p04033 | u256868077 | 1566149381 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | a,b=map(int,input().split())
if(a*b<=0):
print("Zero")
else:
if(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,208,805 |
s498854641 | p04033 | u459798349 | 1566075410 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 159 | a,b=map(int,input().split())
if a*b<=0:
print("Zero")
elif a>0:
print("Positive")
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,806 |
s500667315 | p04033 | u503228842 | 1566074391 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 176 | a,b = map(int,input().split())
if a > 0:
print("Positive")
elif a<=0<=b:
print("Zero")
else: # b<0
if (b-a)%2:
print("Positive")
else:print("Negative")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,807 |
s854867982 | p04033 | u328364772 | 1565991303 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 170 | a, b = map(int, input().split())
if a > 0:
print("Positive")
elif b >= 0:
print("Zero")
elif (b-a+1) % 2 == 0:
print("Positive")
else:
print("Negative")
| p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p>
</section>
</div>
<div class="p... | 1 3
| Positive
| 1,208,808 |
s274296552 | p04033 | u670180528 | 1565967345 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 86 | a,b=map(int,input().split());print("Zero"*(a*b<1)or "PNoesgia"[b<(b-a)%2<1::2]+"tive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <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,809 |
s391562161 | p04033 | u670180528 | 1565966686 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 85 | a,b=map(int,input().split());print(("Zero","PNoesgia"[b<(b-a)%2<1::2]+"tive")[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,810 |
s181212158 | p04033 | u670180528 | 1565966420 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 123 | a,b=map(int,input().split())
if a*b<=0:
print("Zero")
elif b<0 and (b-a)%2==0:
print("Negative")
else:
print("Positive") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <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,811 |
s696787423 | p04033 | u919633157 | 1565895349 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 185 | # 2019/08/15
a,b=map(int,input().split())
if a>0:ans=('Positive')
elif b<0:
if -(a+b-1)%2:
ans=('Negative')
else:
ans=('Positive')
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,208,812 |
s680597588 | p04033 | u263830634 | 1565885492 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 267 | a, b = map(int, input().split())
if a <= 0 <= b: #0が含まれている時
print ('Zero')
exit()
if 0 < a: #全て正のとき
print ('Positive')
exit()
num = min(-1, b) - a + 1
if num % 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,813 |
s890696268 | p04033 | u333190709 | 1565821060 | Python | Python (3.4.3) | py | Accepted | 36 | 5048 | 762 | #!/usr/bin/env python3
import sys, math, fractions, itertools
def solve(a: int, b: int):
if a > 0:
print('Positive')
elif a <= 0 <= b:
print('Zero')
else:
if (b-a) % 2 == 0:
print('Negative')
else:
print('Positive')
return
# Generated by 1.1.4 ... | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <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,814 |
s343188424 | p04033 | u571969099 | 1565801681 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 165 | a,b=[int(i) for i in input().split()]
if 0<a and 0<b:
print("Positive")
elif a*b<=0:
print("Zero")
elif (b-a)%2==1:
print("Positive")
else:
print("Negative") | p04033 | <span class="lang-en">
<div class="part">
<section>
<h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <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,815 |
s446876485 | p04033 | u296150111 | 1565750234 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 153 | a,b=map(int,input().split())
if (a>0 and b>0) or (a<0 and b<0\
and (b-a)%2!=0):
print("Positive")
elif a<=0<=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,816 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.