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
s216481967
p04033
u753803401
1565729370
Python
Python (3.4.3)
py
Accepted
18
2940
213
a, b = map(int, input().split()) if a * b <= 0: print("Zero") elif a > 0 and b > 0: print("Positive") else: if (abs(a - b) + 1) % 2 == 0 : print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,817
s249522886
p04033
u007550226
1565186747
Python
Python (3.4.3)
py
Accepted
17
3060
168
a,b= map(int,input().split()) if a > 0:print('Positive') elif b < 0: if (b-a+1) % 2 == 0:print('Positive') else:print('Negative') elif a <= 0 <= b:print('Zero')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,818
s369943548
p04033
u800258529
1565116520
Python
Python (3.4.3)
py
Accepted
18
3064
130
a,b=map(int,input().split()) if a<=0<=b:print('Zero') elif 0<a:print('Positive') elif b<0:print('PNoesgiattiivvee'[(b-a)%2==0::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,208,819
s875467964
p04033
u921773161
1565099521
Python
Python (3.4.3)
py
Accepted
17
3060
212
a, b = map(int, input().split()) if a > 0: ans = 'Positive' elif b < 0: tmp = b - a + 1 if tmp % 2 == 0: ans = 'Positive' else: ans = '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,208,820
s099759184
p04033
u231685196
1565059643
Python
Python (3.4.3)
py
Accepted
17
2940
247
a,b = map(int,input().split()) if a>0: print("Positive") elif a == 0: print("Zero") else: if b < 0: if (b-a)%2 == 0: print("Negative") else: print("Positive") else: print("Zero")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,821
s592012224
p04033
u941753895
1564977728
Python
Python (3.4.3)
py
Accepted
17
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==1: print('Positive') else: print('Negative') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,822
s732388842
p04033
u569272329
1564801796
Python
Python (3.4.3)
py
Accepted
17
2940
217
a, b = map(int, input().split()) if (a <= 0) and (b >= 0): print("Zero") elif (a < 0) and (b < 0): if (b - a + 1) % 2: 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,823
s887550963
p04033
u097317219
1564770971
Python
Python (3.4.3)
py
Accepted
17
3064
170
a,b = map(int,input().split()) if a*b <= 0: print("Zero") elif a>0: print("Positive") 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,824
s089481023
p04033
u665038048
1564414082
Python
Python (3.4.3)
py
Accepted
17
3060
314
a, b = map(int, input().split()) nega_num = 0 posi_num = 0 if a < 0 and b < 0: nega_num = b - a + 1 elif a < 0 and b >= 0: print('Zero') exit() elif a == 0: print('Zero') exit() elif a > 0: print('Positive') exit() if nega_num % 2 == 1: print('Negative') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,825
s015165577
p04033
u350248178
1564125164
Python
Python (3.4.3)
py
Accepted
17
3060
217
a,b=map(int,input().split()) if a<0 and b<0: if (b-a)%2==0: print("Negative") else: print("Positive") elif a<0 and b>0: print("Zero") 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,826
s438666567
p04033
u927534107
1564005034
Python
Python (3.4.3)
py
Accepted
17
2940
117
a,b=map(int,input().split()) if a*b<=0:print("Zero") 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,208,827
s883489714
p04033
u196697332
1564000431
Python
Python (3.4.3)
py
Accepted
17
2940
234
a, b = map(int, input().split()) if a <= 0 and b >= 0: print("Zero") elif a > 0 and b > 0: print('Positive') elif a < 0 and b < 0: if (b - a + 1) % 2: print('Negative') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,828
s836137767
p04033
u537782349
1563987348
Python
Python (3.4.3)
py
Accepted
17
2940
215
a, b = map(int, input().split()) if 0 < a and 0 < b: print("Positive") elif a < 0 and b < 0: if (abs(a-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,829
s599864445
p04033
u077291787
1563985151
Python
Python (3.4.3)
py
Accepted
17
3060
307
# AGC002A - Range Product def main(): a, b = tuple(map(int, input().rstrip().split())) if a <= 0 <= b: print("Zero") elif 0 < a: print("Positive") else: l = abs(a - b) + 1 print("Positive" if l % 2 == 0 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,830
s446344977
p04033
u222207357
1563772166
Python
Python (3.4.3)
py
Accepted
17
3060
210
a,b = map(int,input().split()) if a*b <= 0: print('Zero') elif a > 0 and b > 0: print('Positive') 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,208,831
s881038663
p04033
u281216592
1563733057
Python
Python (3.4.3)
py
Accepted
17
3060
220
a,b = [int(i) for i in input().split()] if(a<0): if(b<0): if((b-a)%2 ==0): print('Negative') else: print('Positive') else: print('Zero') elif(a == 0): print('Zero') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,832
s091885136
p04033
u889344512
1563694369
Python
Python (3.4.3)
py
Accepted
18
2940
212
a,b = map(int,input().split()) if a*b<=0: print("Zero") elif a>0: print("Positive") else: mab = (abs(a)%2 - abs(b)%2)%2 if mab == 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,833
s715380440
p04033
u623659526
1563681768
Python
Python (3.4.3)
py
Accepted
30
4212
452
import logging logging.basicConfig(level=logging.INFO, format="%(message)s") #logging.disable(logging.CRITICAL) def main(): a, b = map(int, input().split()) logging.info("Hello!") if a * b < 0: print("Zero") elif a > 0: print("Positive") else: if (b - a + 1) % 2 == 1: ...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,834
s960382446
p04033
u350997995
1563571065
Python
Python (3.4.3)
py
Accepted
17
2940
193
a,b = map(int,input().split()) if a<=0 and 0<=b: print("Zero") else: if 0<a: 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,835
s168423838
p04033
u108617242
1563482047
Python
Python (3.4.3)
py
Accepted
17
3060
185
a, b = map(int, input().split()) count_minus = abs(min(a,0) - min(b+1, 0)) if a <= 0 <= b: print('Zero') elif count_minus % 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,836
s177200160
p04033
u970449052
1563339002
Python
Python (3.4.3)
py
Accepted
17
2940
175
a,b=map(int,input().split()) if a<=0<=b: print('Zero') exit() if a>0: print('Positive') exit() 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,837
s159386046
p04033
u537782349
1563325302
Python
Python (3.4.3)
py
Accepted
17
3060
461
a, b = map(int, input().split()) if a * b < 0 and abs(a) == abs(b): print("Zero") elif a >= 0 and b >= 0: print("Positive") elif a < 0 and b >= 0: if a % 2 == 0: print("Positive") else: print("Negative") elif a >= 0 and b < 0: if b % 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,208,838
s137308199
p04033
u064246852
1563288224
Python
Python (3.4.3)
py
Accepted
17
2940
198
a, b = map(int,input().split()) if a == 0: print("Zero") elif a > 0: print("Positive") elif b >= 0: print("Zero") elif (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,839
s964539419
p04033
u480138356
1563221781
Python
Python (3.4.3)
py
Accepted
17
2940
198
a, b = map(int, input().split()) if a <= 0 and 0 <= b: print("Zero") elif a > 0: print("Positive") else: if (b-a+1)&1 == 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,840
s754383243
p04033
u677523557
1563204524
Python
Python (3.4.3)
py
Accepted
17
2940
202
A, B = map(int, input().split()) # 横に2個 if A <= 0 and 0 <= B: ans = 'Zero' elif A > 0: ans = 'Positive' elif (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,841
s523374759
p04033
u148781101
1563164869
Python
Python (3.4.3)
py
Accepted
17
3060
196
a, b = map(int, input().split()) if a > 0 and b > 0: print("Positive") elif a < 0 and b < 0: 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,842
s749345726
p04033
u299840026
1563147343
Python
Python (3.4.3)
py
Accepted
18
3060
243
a, b = map(int, input().split()) if (a==0 or b==0) or (a<0 and b>0): print("Zero") if a>0 and b>0: print("Positive") if a<0 and b<0: if (abs(abs(a)-abs(b))+1)%2 == 0: print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,843
s070113375
p04033
u768128363
1563143194
Python
Python (3.4.3)
py
Accepted
19
2940
207
a, b = map(int, input().split()) if a * b <= 0: print("Zero") exit(0) if a < 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,208,844
s318958042
p04033
u291766461
1563140768
Python
Python (3.4.3)
py
Accepted
18
3060
241
a, b = map(int, input().split()) if a <= 0 <= b: print("Zero") exit() if 0 < a: print("Positive") exit() if b < 0: diff = abs(b - a) + 1 if diff % 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,845
s186508224
p04033
u623349537
1563124192
Python
Python (3.4.3)
py
Accepted
17
2940
199
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,846
s591509296
p04033
u712052023
1563039333
Python
Python (2.7.6)
py
Accepted
11
2568
206
s, e = [int(_) for _ in raw_input().split(" ")] if s < 0 and 0 < e: print "Zero " exit() if 0 < s: print "Positive" exit() if (e - s + 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,847
s831561746
p04033
u663438907
1562877506
Python
Python (3.4.3)
py
Accepted
17
2940
195
a, b = map(int, input().split()) if a <= 0 and b >= 0: print('Zero') if a > 0: print('Positive') if b < 0: if (a - b + 1) % 2 == 0: print('Positive') else: print('Negative')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,848
s788147485
p04033
u996542290
1562853678
Python
Python (3.4.3)
py
Accepted
20
3060
214
a, b = map(int,input().split()) if a<= 0 <=b: print("Zero") elif a > 0: print("Positive") elif a==b: print("Positive") elif (b-a)%2 == 0: print("Negative") elif (b-a)%2 == 1: 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,849
s849665393
p04033
u996542290
1562853528
Python
Python (3.4.3)
py
Accepted
18
2940
166
a, b = map(int,input().split()) if a<= 0 <=b: 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,850
s156209743
p04033
u996542290
1562852936
Python
Python (3.4.3)
py
Accepted
17
2940
170
a, b = map(int,input().split()) if a <= 0 <= b: 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,851
s588070885
p04033
u473291366
1562773842
Python
Python (3.4.3)
py
Accepted
18
3060
170
a, b = map(int,input().split()) if a <= 0 <= b: 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,852
s259898441
p04033
u671252250
1562766427
Python
Python (3.4.3)
py
Accepted
18
3060
290
# coding: utf-8 # Your code here! a, b = map(int, input().split()) if a > 0: print("Positive") elif a == 0: print("Zero") else: if 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,853
s437607640
p04033
u222207357
1562693850
Python
Python (3.4.3)
py
Accepted
17
2940
223
a,b = map(int,input().split()) if a*b <= 0: print('Zero') else: if a>0 and b>0: print("Positive") 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,854
s856430110
p04033
u222138979
1562693841
Python
Python (3.4.3)
py
Accepted
17
3064
243
a, b = (int(_) for _ in input().split()) if a < 0 and b > 0: print('Zero') elif a > 0 and b > 0: print('Positive') else: diff = abs(b - a) + 1 if diff % 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,855
s395957609
p04033
u239342230
1562646464
Python
Python (3.4.3)
py
Accepted
18
3060
192
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,856
s725107752
p04033
u539517139
1562591159
Python
Python (3.4.3)
py
Accepted
17
2940
141
a,b=map(int,input().split()) if a>0: print('Positive') elif a*b<=0: print('Zero') else: print('Positive' if (b-a)%2==1 else 'Negative')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,857
s982175828
p04033
u116670634
1562476885
Python
Python (3.4.3)
py
Accepted
17
2940
152
a, b = map(int, input().split()) c = b - a + 1 if a <= 0 <= b: print("Zero") elif b < 0 and c % 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,858
s931207669
p04033
u223646582
1562454905
Python
Python (3.4.3)
py
Accepted
18
2940
222
a, b = map(int, input().split()) if a >= 1: print('Positive') elif a == 0 or b == 0: print('Zero') elif a <= -1 and b >= 1: 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,859
s213054708
p04033
u778814286
1562425354
Python
Python (3.4.3)
py
Accepted
25
3832
900
###template### import sys def input(): return sys.stdin.readline().rstrip() from collections import defaultdict, Counter from itertools import product, groupby, count, permutations, combinations from math import pi, sqrt, ceil, floor from collections import deque from bisect import bisect, bisect_left, bisect_right fro...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,860
s315794796
p04033
u691018832
1562289994
Python
Python (3.4.3)
py
Accepted
17
2940
249
import sys input = sys.stdin.readline a, b = map(int, input().split()) if a <= 0: if b >= 0: ans = 'Zero' elif b < 0 and (b-a)%2 == 0: ans = 'Negative' else: ans = 'Positive' else: ans = 'Positive' print(ans)
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,861
s742174922
p04033
u693953100
1562199593
Python
Python (3.4.3)
py
Accepted
18
2940
170
a,b = map(int,input().split()) if a<=0 and b>=0: print('Zero') elif a>0 and b>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,862
s650425532
p04033
u256031597
1562190944
Python
Python (3.4.3)
py
Accepted
17
3060
284
a,b = map(int, input().split()) if a==0 or b==0: print('Zero') elif a<0 and b>0: print('Zero') elif a>0 and b<0: print('Zero') elif a>0 and b>0: print('Positive') elif a<0 and b<0: if abs(a-b)%2==0: print('Negative') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,863
s507379076
p04033
u504562455
1562031312
Python
Python (3.4.3)
py
Accepted
17
3060
312
a, b = [int(i) for i in input().split()] if a < 0: if b < 0: if (b - a + 1)%2 == 0: print("Positive") else: print("Negative") else: print("Zero") 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,208,864
s809162926
p04033
u977193988
1561749015
Python
Python (3.4.3)
py
Accepted
17
2940
211
a,b=map(int,input().split()) if 0<a: print('Positive') elif a==0: print('Zero') elif a<0 and 0<=b: 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,865
s940569010
p04033
u702582248
1561603206
Python
Python (3.4.3)
py
Accepted
35
5076
551
from fractions import gcd import math def inverse(a): return pow(a, mod - 2, mod) def usearch(x, a): lft = 0 rgt = len(a) + 1 while rgt - lft > 1: mid = (rgt + lft) // 2 if a[mid] <= x: lft = mid else: rgt = mid return lft def main(): a, b =ma...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,866
s847865301
p04033
u623687794
1561583675
Python
Python (3.4.3)
py
Accepted
19
3060
172
a,b=map(int,input().split()) if a*b<=0: print('Zero') else: if a>0 and b>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,867
s565986484
p04033
u698176039
1561504381
Python
Python (3.4.3)
py
Accepted
17
2940
201
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,868
s699197461
p04033
u552502395
1561429601
Python
Python (3.4.3)
py
Accepted
17
2940
216
import sys a, b = map(int, input().split()) n = b - a + 1 if ( (a<=0 and b>=0) or (a==0) or (b==0) ): print('Zero') sys.exit(0) if a>0 or n%2 == 0: print('Positive') sys.exit(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,869
s622049535
p04033
u314050667
1561347748
Python
Python (3.4.3)
py
Accepted
18
3060
296
a, b = map(int, input().split()) if a <= 0 and b >= 0: ans = 0 elif a < 0 and b < 0 : if (abs(a) + abs(b)) % 2: ans = 1 else: ans = 2 else: ans = 1 if ans == 0: print("Zero") elif ans == 1: print("Positive") elif ans == 2: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,870
s219195720
p04033
u970308980
1561273299
Python
Python (3.4.3)
py
Accepted
18
2940
229
a, b = map(int, input().split()) if a <= 0 <= b: print('Zero') exit() if a > 0: print('Positive') exit() if a == b: print('Positive') exit() print('Negative' if len(range(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,871
s558623878
p04033
u923712635
1561256009
Python
Python (3.4.3)
py
Accepted
17
2940
200
a,b = [int(x) for x in input().split()] if(a>0): print('Positive') elif(a<0 and b<0): if((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,208,872
s576810251
p04033
u497046426
1561238868
Python
Python (3.4.3)
py
Accepted
17
3060
205
a, b = map(int, input().split()) if a <= 0 <= b: print('Zero') elif 0 < a: print('Positive') else: # 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,873
s029303047
p04033
u500297289
1561235132
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 and b > 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,874
s227499780
p04033
u905268546
1561220621
Python
Python (3.4.3)
py
Accepted
17
2940
198
a, b = map(int, input().split()) if a * b <= 0: print("Zero") exit() if 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,208,875
s497412797
p04033
u899975427
1560974787
Python
Python (3.4.3)
py
Accepted
17
2940
182
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,876
s559235036
p04033
u102461423
1560795194
Python
Python (3.4.3)
py
Accepted
17
3060
196
a,b = map(int,input().split()) if a > 0: answer = 'Positive' elif b >= 0: answer = 'Zero' else: # both negative x = b - a + 1 answer = 'Negative' if x & 1 else '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,208,877
s116883022
p04033
u982594421
1560621626
Python
Python (3.4.3)
py
Accepted
17
2940
143
a, b = map(int, input().split()) if b < 0 and (a - b) % 2 == 0: print('Negative') 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,208,878
s099615252
p04033
u982594421
1560621468
Python
Python (3.4.3)
py
Accepted
17
2940
181
a, b = map(int, input().split()) if 0 < a: print('Positive') elif a <= 0 <= b: print('Zero') else: if abs(a - b) % 2 == 0: print('Negative') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,879
s363655987
p04033
u463655976
1560616596
Python
Python (3.4.3)
py
Accepted
17
2940
142
a, b = map(int, input().split()) if a <= 0 <= b: print("Zero") elif a < 0 and a % 2 == b % 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,880
s273784581
p04033
u867736259
1560389586
Python
Python (3.4.3)
py
Accepted
25
3060
202
a,b = map(int,input().split()) if a > 0: print('Positive') elif (a<=0)&(b>=0): print('Zero') else: k = abs(a-b)+1 if k%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,881
s551108115
p04033
u268516119
1560196122
Python
Python (3.4.3)
py
Accepted
17
2940
118
a,b=map(int,input().split()) if a*b<=0:print("Zero") elif a>0 or (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,882
s778731125
p04033
u203597140
1560109697
Python
Python (3.4.3)
py
Accepted
17
2940
202
a, b = [int(v) for v in input().split()] # 0 < a <= b if 0 < a: print("Positive") elif a <= 0 <= b: print("Zero") 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,883
s390138438
p04033
u315703650
1560053430
Python
Python (3.4.3)
py
Accepted
17
2940
198
a,b = map(int,input().split()) if a>0: print("Positive") elif a<=0 and 0<=b: print("Zero") elif a<0 and b<0: if (b-a)%2==0: print("Negative") else: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,884
s406742558
p04033
u405256066
1559977014
Python
Python (3.4.3)
py
Accepted
17
3060
300
from sys import stdin a,b = [int(x) for x in stdin.readline().rstrip().split()] if a == 0 and b == 0: print("Zero") elif a > 0 and b > 0: print("Positive") elif a < 0 and b > 0: print("Zero") else: if (b - a + 1) % 2 == 0: print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,885
s180302718
p04033
u733774002
1559877809
Python
Python (3.4.3)
py
Accepted
20
2940
193
a, b = map(int, input().split()) if 0 <= a: print("Positive") elif 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,886
s207349572
p04033
u655048024
1559505851
Python
Python (3.4.3)
py
Accepted
17
2940
245
a,b = map(int,input().split()) if (a>=0): if(a == 0): print("Zero") else: print("Positive") else: if(b>= 0): print("Zero") else: k = b - a +1 if(k%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,887
s301354487
p04033
u957872856
1559348026
Python
Python (3.4.3)
py
Accepted
17
2940
196
a, b = map(int,input().split()) if a <=0 and b >= 0: print("Zero") elif (b-a) % 2 == 0 and a < 0 and b < 0: print("Negative") elif 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,888
s151068475
p04033
u388415336
1559026181
Python
Python (3.4.3)
py
Accepted
17
3060
342
num_1 , num_2 = input().split() num_1 = int(num_1) num_2 = int(num_2) if (num_1 > 0) and (num_2 > 0): print("Positive") elif ((num_1 > 0) and (num_2 < 0)) or ((num_1 < 0) and (num_2 > 0)): print("Zero") elif (num_1 < 0)and (num_2 < 0): if ((num_1 - num_2)%2) == 0: print("Negative") else: ...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,889
s588226830
p04033
u767664985
1558953358
Python
Python (3.4.3)
py
Accepted
17
2940
181
a, b = map(int, input().split()) if a * b <= 0: print("Zero") exit() 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,890
s667483954
p04033
u391731808
1558894930
Python
Python (3.4.3)
py
Accepted
17
2940
115
a,b=map(int,input().split()) if a*b <= 0:print("Zero") elif a>0 or (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,891
s626772230
p04033
u764600134
1558659282
Python
Python (3.4.3)
py
Accepted
17
3060
431
# -*- coding: utf-8 -*- """ A - Range Product https://atcoder.jp/contests/agc002/tasks/agc002_a """ import sys def solve(a, b): if a*b <= 0: return 'Zero' if a > 0 and b > 0: return 'Positive' if (b-a)%2==0: return 'Negative' return 'Positive' def main(args): a, b = map(...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,892
s645899737
p04033
u885899351
1558550604
Python
Python (3.4.3)
py
Accepted
17
2940
137
a,b=map(int,input().split()) if a>0:print("Positive") elif a<=0<=b:print("Zero") elif (b-a)%2==0:print("Negative") else:print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,893
s522727783
p04033
u532966492
1558399232
Python
Python (3.4.3)
py
Accepted
17
2940
154
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,208,894
s279501067
p04033
u507116804
1558316084
Python
Python (3.4.3)
py
Accepted
17
2940
178
a,b=map(int, input().split()) if a*b<=0: print("Zero") elif a>0: print("Positive") elif b<0: if (b-a+1)%2==0: print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,895
s386706319
p04033
u614314290
1558229728
Python
Python (3.4.3)
py
Accepted
17
2940
155
A, B = map(int, input().split()) if (B < 0): print(["Negative", "Positive"][(A - B) % 2]) exit() if (0 < A): print("Positive") exit() print("Zero")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,896
s227331572
p04033
u278886389
1558132298
Python
Python (3.4.3)
py
Accepted
17
3060
226
a,b = map(int,input().split(" ")) if a <= 0 <= b: print("Zero") exit() if 0 < a: print("Positive") exit() b = min(b,-1) if (b-a+1)%2 == 0: print("Positive") exit() else: print("Negative") exit()
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,897
s061714064
p04033
u077019541
1558027571
Python
Python (3.4.3)
py
Accepted
17
3060
196
a,b = map(int,input().split()) if 0 >=a and 0<=b: print("Zero") elif a>0 and b>0: print("Positive") else: if (b-a+1)%2==0: print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,898
s708222329
p04033
u606045429
1557830500
Python
Python (3.4.3)
py
Accepted
17
2940
174
a, b = [int(i) for i in input().split()] if 0 < a or (b < 0 and (b - a + 1) % 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,899
s134361554
p04033
u252773293
1557450216
Python
Python (3.4.3)
py
Accepted
17
2940
200
a,b=map(int,input().split()) if b < 0: if (b-a+1) % 2 == 0: ans = 'Positive' elif (b-a+1) % 2 == 1: ans = 'Negative' elif a > 0: ans='Positive' else: ans='Zero' print(ans)
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,900
s216692824
p04033
u091051505
1557193293
Python
Python (3.4.3)
py
Accepted
17
3060
212
a, b = map(int, input().split()) if a > 0: ans = "Positive" elif (a <= 0) & (b >= 0): ans = "Zero" 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,901
s795894750
p04033
u185896732
1557096655
Python
Python (3.4.3)
py
Accepted
17
3060
168
a,b=map(int,input().split()) if b<0: n=abs(a-b)+1 if n%2==0: 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,902
s203416825
p04033
u969190727
1557085387
Python
Python (3.4.3)
py
Accepted
17
2940
119
a,b=map(int,input().split()) if a*b<=0: print("Zero") else: print("Negative" if (b-a)%2==0 and b<0 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,903
s360169499
p04033
u017271745
1557015910
Python
Python (3.4.3)
py
Accepted
17
3060
213
a, b = map(int, input().split()) if b < 0: if (b-a+1) % 2 == 0: ans = 'Positive' elif (b-a+1) % 2 == 1: ans = 'Negative' elif a > 0: ans = 'Positive' else: ans = 'Zero' print(ans)
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,904
s502732845
p04033
u949414593
1556908995
Python
Python (3.4.3)
py
Accepted
17
2940
182
a,b,=map(int,input().split()) if a==0 or b==0 or (a>0 and b<0) or (a<0 and b>0): print('Zero') elif a<0 and b<0 and (a+b)%2==0: print('Negative') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,905
s784148954
p04033
u735233212
1556901906
Python
Python (3.4.3)
py
Accepted
17
3060
179
a, b = map(int, input().split()) if (a*b <= 0): print("Zero") elif ((a>0) and (b>0)): print("Positive") else: if((b-a+1)%2 == 0): print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,906
s633241103
p04033
u282228874
1556808227
Python
Python (3.4.3)
py
Accepted
18
2940
141
a,b = map(int,input().split()) if a <= 0 <= b: print('Zero') elif b < 0 and b%2 == a%2: print('Negative') else: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,907
s503676508
p04033
u756388720
1556550238
Python
Python (3.4.3)
py
Accepted
17
2940
191
a, b = map(int, input().split()) if 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,208,908
s089378353
p04033
u710789518
1556456282
Python
Python (3.4.3)
py
Accepted
17
2940
220
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: 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,909
s224852580
p04033
u163320134
1555390502
Python
Python (3.4.3)
py
Accepted
17
2940
167
n,m=map(int,input().split()) if n*m<=0: print('Zero') elif m<0: if abs(m-n)%2==0: print('Negative') else: print('Positive') elif n>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,910
s091184396
p04033
u644778646
1555103354
Python
Python (3.4.3)
py
Accepted
17
2940
206
a,b = map(int,input().split()) if a*b <= 0: print("Zero") exit() if a > 0: print("Positive") exit() s = abs(a) - abs(b) + 1 if s % 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,911
s787683295
p04033
u143509139
1554946691
Python
Python (3.4.3)
py
Accepted
18
2940
141
a, b = map(int, input().split()) if a <= 0 <= b: print('Zero') elif 0 < a or (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,912
s949284924
p04033
u151625340
1554654899
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 (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,913
s579497336
p04033
u071730284
1554643213
Python
Python (3.4.3)
py
Accepted
18
2940
196
a, b = [int(x) for x in input().split()] if a * b <= 0: ans = "Zero" elif a > 0: ans = "Positive" else: n = b - a + 1 ans = "Positive" if (n % 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,914
s739841947
p04033
u859897687
1554552519
Python
Python (3.4.3)
py
Accepted
19
2940
136
a,b=map(int,input().split()) if a*b<=0: print("Zero") else: if a>0 or (b-a)%2>0: print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,915
s336880127
p04033
u643840641
1554426599
Python
Python (3.4.3)
py
Accepted
17
2940
145
a, b = map(int, input().split()) if a > 0 or (b < 0 and (b-a)%2): print("Positive") elif b < 0: 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,916