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
s961460894
p04033
u110580875
1586199171
Python
Python (3.4.3)
py
Accepted
17
3064
243
a,b=map(int,input().split()) num=0 if a%2==0 and b%2==1 or a%2==1 and b%2==0: num=1 if a>0 and b>0 or a<0 and b<0 and num==1: print("Positive") elif a<0 and b<0 and num==0 or a<0 and 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,617
s883831806
p04033
u878849567
1586196910
Python
Python (3.4.3)
py
Accepted
17
2940
188
a, b = map(int, input().split()) if a > 0: print("Positive") elif b < 0: if (b - a) % 2 == 0: print("Negative") else: print("Positive") else: print("Zero")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,618
s154376847
p04033
u941022948
1586196143
Python
Python (3.4.3)
py
Accepted
17
3064
272
a, b= map(int, input().split()) if ((a<0)and(b<0))and((abs(a)+abs(b))%2==0): print('Negative') elif (a>0)and(b>0): print('Positive') elif ((a<0)and(b<0))and((abs(a)+abs(b))%2==1): print('Positive') elif (a==0)or(b==0): print('Zero') 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,619
s137415642
p04033
u469281291
1586195885
Python
Python (3.4.3)
py
Accepted
17
3060
280
a,b = map(int, input().split()) if (a == 0 or b == 0): print('Zero') elif (a > 0 and b > 0): print('Positive') else: if (b < 0): if (abs(a - b) % 2 == 1): print('Positive') else: print('Negative') else: print('Zero')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,620
s591326124
p04033
u625920333
1586195427
Python
Python (3.4.3)
py
Accepted
17
3060
219
a, b = map(int, input().split()) if a <= 0 and b >= 0: print("Zero") elif a < 0 and b < 0: if (abs(a - b) + 1) % 2 == 0: print("Positive") else: print("Negative") 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,621
s213247094
p04033
u223555291
1586195067
Python
Python (3.4.3)
py
Accepted
17
2940
231
a,b=map(int,input().split()) if a==0 or b==0 or abs(a)==b or (a<0 and b>0): print('Zero') elif a>0 or b>0: print('Positive') else: if (abs(a)+abs(b))%2==0: print('Negative') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,622
s062196956
p04033
u644972721
1586152466
Python
Python (3.4.3)
py
Accepted
22
3572
303
a, b = map(int, input().split()) if b > 0 and a < 0: ans = 2 elif b <= 0: if b == 0: ans = 2 else: ans = (a - b) % 2 else: if b == 0: ans = 2 else: ans = 1 if ans == 0: print("Negative") elif ans == 1: 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,623
s652416537
p04033
u328755070
1586131451
Python
Python (3.4.3)
py
Accepted
17
2940
195
a, b = list(map(int, input().split())) if a * b <= 0: print('Zero') elif a > 0: print('Positive') elif (a-b) % 2 == 0: print('Negative') elif (a-b) % 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,624
s848672021
p04033
u556589653
1586029124
Python
Python (3.4.3)
py
Accepted
17
3060
256
a,b = map(int,input().split()) if a == 0 or b == 0: print("Zero") else: if 0<a<=b<=10**9+1: print("Positive") elif a<=0<=b<=10**9+1: print("Zero") elif a<=b<0: if (b-a+1)%2 == 0: print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,625
s696088395
p04033
u490553751
1586004287
Python
Python (3.4.3)
py
Accepted
20
3316
360
#template from collections import Counter def inputlist(): return [int(j) for j in input().split()] #template a,b = inputlist() if a*b <= 0: print("Zero") exit() if a > 0 and b > 0: print("Positive") exit() if a < 0 and b < 0: d = abs(a) - abs(b) + 1 if d % 2 == 0: print("Positive") ...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,626
s694167342
p04033
u959225525
1585967053
Python
Python (3.4.3)
py
Accepted
17
2940
191
a,b=map(int,input().split()) if a<=0 and b>=0: print("Zero") elif a>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,627
s287255036
p04033
u896726004
1585606951
Python
Python (3.4.3)
py
Accepted
17
3060
202
a, b = map(int, input().split()) if a>0: print('Positive') elif a<0 and b>0 or a==0 or 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,628
s189082468
p04033
u089142196
1585521170
Python
Python (3.4.3)
py
Accepted
17
3060
216
a,b=map(int,input().split()) if a==0 or b==0: ans="Zero" elif a>0: ans="Positive" else: if b>0: ans="Zero" else: c=b-a+1 if c%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,629
s647965904
p04033
u281610856
1585508515
Python
Python (3.4.3)
py
Accepted
18
2940
187
a, b = map(int, input().split()) if a > 0: print("Positive") elif b < 0: if (b - a) % 2 == 0: print("Negative") else: print("Positive") else: print("Zero")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,630
s926326788
p04033
u672475305
1585443013
Python
Python (3.4.3)
py
Accepted
21
3316
213
a,b = map(int,input().split()) if a*b<=0: print('Zero') else: if 0<a: print('Positive') else: if abs(a-b)%2==0: print('Negative') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,631
s487620236
p04033
u622045059
1585435192
Python
Python (3.4.3)
py
Accepted
39
5300
2,152
import math import fractions import bisect import collections import itertools import heapq import string import sys import copy from decimal import * from collections import deque sys.setrecursionlimit(10**7) MOD = 10**9+7 INF = float('inf') #無限大 def gcd(a,b):return fractions.gcd(a,b) #最大公約数 def lcm(a,b):return (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,632
s364025695
p04033
u977642052
1585314684
Python
Python (3.4.3)
py
Accepted
17
2940
369
def main(a, b): if 0 < a <= b: print("Positive") return elif a <= b < 0: if (b - a + 1) % 2 == 0: print("Positive") return else: print("Negative") return elif a <= 0 <= b: print("Zero") 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,633
s533546305
p04033
u127499732
1585115420
Python
Python (3.4.3)
py
Accepted
17
2940
249
def main(): a, b = map(int, input().split()) if a <= 0 <= b: print('Zero') elif b < 0: print('Positive' if (b - a + 1) % 2 == 0 else 'Negative') else: 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,634
s864903251
p04033
u443577878
1585082871
Python
Python (3.4.3)
py
Accepted
17
2940
173
a,b=map(int,input().split()) if a>=0 and b>=0: print("Positive") elif a<=0 and b>=0: print("Zero") elif (b-a)%2==0: print("Negative") else: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,635
s866074626
p04033
u545368057
1585077508
Python
Python (3.4.3)
py
Accepted
18
3060
206
a,b = map(int, input().split()) if a * b <= 0: print("Zero") elif a > 0 and b > 0: print("Positive") else: if (min(0,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,636
s480346391
p04033
u969848070
1584883915
Python
Python (3.4.3)
py
Accepted
17
3064
218
a, b = map(int,input().split()) if (a <= 0 and b>= 0) or a==0 or b == 0: print('Zero') elif a < 0 and b < 0 : if abs(a - b +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,637
s386803546
p04033
u204616996
1584820519
Python
Python (3.4.3)
py
Accepted
18
3060
169
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,638
s540084662
p04033
u152891327
1584811520
Python
Python (3.4.3)
py
Accepted
18
3060
204
a, b = map(int, input().split()) if a * b < 0 or a == 0 or b == 0: ans = 'Zero' elif b < 0: if (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,639
s709905870
p04033
u391675400
1584712445
Python
Python (3.4.3)
py
Accepted
17
2940
239
a,b = map(int,(input().split())) if a == 0 or b == 0 or (a <0 and b > 0): print("Zero") elif a > 0: print("Positive") else: if (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,640
s190139339
p04033
u218757284
1584630150
Python
Python (3.4.3)
py
Accepted
17
2940
220
a, b = map(int, input().split()) if a > 0: print("Positive") elif a == 0: print("Zero") else: if b >= 0: print("Zero") else: if (b - a) % 2 == 0: print("Negative") else: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,641
s734376266
p04033
u022979415
1584589865
Python
Python (3.4.3)
py
Accepted
17
2940
230
def main(): a, b = map(int, input().split()) if a <= 0 <= b: print("Zero") elif a < 0 and (a - b + 1) % 2: print("Negative") else: 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,642
s188596142
p04033
u577902321
1584586537
Python
Python (3.4.3)
py
Accepted
17
2940
317
def main(): a, b = map(int, input().split()) if a == 0 or b == 0 or (a < 0 and b > 0): print("Zero") elif b < 0: if (a + b - 1) % 2 == 0: print("Positive") else: print("Negative") else: 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,643
s155715067
p04033
u602677143
1584583082
Python
Python (3.4.3)
py
Accepted
18
3064
422
import sys a,b = map(int,input().split()) c = 0 if (a+b) == 0: print("Zero") sys.exit() elif a < 0 and b < 0: if (a-b) % 2 == 1: print("Positive") sys.exit() elif a < 0 and b >= 0: if a%2 == 0: print("Positive") sys.exit() elif b < 0 and a >= 0: if b % 2 == 0: ...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,644
s945850947
p04033
u189479417
1584482971
Python
Python (3.4.3)
py
Accepted
17
3060
251
a, b = map(int,input().split()) if a > 0: print("Positive") elif a == 0: print("Zero") else: if b >= 0: print("Zero") else: if (b - a) % 2 != 0: print("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,645
s146215385
p04033
u923270446
1584478566
Python
Python (3.4.3)
py
Accepted
17
3060
203
a, b = map(int, input().split()) if a <= 0 and b >= 0: print("Zero") elif 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,646
s670299468
p04033
u346812984
1584476783
Python
Python (3.4.3)
py
Accepted
17
2940
205
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,647
s521266671
p04033
u561083515
1584408692
Python
Python (3.4.3)
py
Accepted
17
2940
178
a,b = map(int, input().split()) if a <= 0 <= b: print("Zero") elif a < 0 and b < 0: print("Negative" if (b - a + 1) % 2 == 1 else "Positive") else: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,648
s549957603
p04033
u504836877
1584403672
Python
Python (3.4.3)
py
Accepted
18
2940
162
a,b = map(int, input().split()) if a > 0: ans = "Positive" elif b >= 0: ans = "Zero" 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,649
s095449914
p04033
u638795007
1584386022
Python
Python (3.4.3)
py
Accepted
58
5864
1,190
def examA(): a, b = LI() if b<a: a,b = b,a if a<=0 and 0<=b: print("Zero") elif 0<a: print("Positive") else: judge = b-a+1 if judge%2==0: print("Positive") else: print("Negative") return def examB(): ans = 0 print(a...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,650
s904482640
p04033
u685983477
1584383800
Python
Python (3.4.3)
py
Accepted
17
3060
215
a, b=map(int, input().split()) if a==0 or b==0: print("Zero") exit() if(a<=0 and b>=0): print("Zero") exit() if a>0: print("Positive") elif abs(b-a)%2==0: print("Negative") else: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,651
s521622519
p04033
u751843916
1584313882
Python
Python (3.4.3)
py
Accepted
17
2940
136
a,b=map(int,input().split()) if a<=0 and b>=0:print("Zero") if a>0:print("Positive") if b<0:print("Positive" if (b-a)%2 else "Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,652
s155004747
p04033
u020390084
1584298455
Python
Python (3.4.3)
py
Accepted
17
3064
540
#!/usr/bin/env python3 import sys # input = sys.stdin.readline def INT(): return int(input()) def MAP(): return map(int,input().split()) def LI(): return list(map(int,input().split())) def main(): a,b = MAP() if a<=0 and b>=0: print('Zero') return if a>0: #全部正の場合 print('Positive') ...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,653
s320389870
p04033
u893063840
1584232568
Python
Python (3.4.3)
py
Accepted
19
3316
191
a, b = map(int, input().split()) if a <= 0 <= b: ans = "Zero" elif a <= b < 0: cnt = b - a + 1 ans = "Negative" if cnt % 2 else "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,654
s817487572
p04033
u151107315
1583953735
Python
Python (3.4.3)
py
Accepted
17
2940
178
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,655
s100468137
p04033
u267300160
1583935636
Python
Python (3.4.3)
py
Accepted
17
2940
192
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,656
s962691033
p04033
u071680334
1583837009
Python
Python (3.4.3)
py
Accepted
18
3060
308
def main(): a, b = map(int, input().split()) if a == 0 or b == 0 or (a < 0 and 0 < b): print("Zero") elif 0 < a: print("Positive") else: if (b-a+1)%2 == 1: print("Negative") else: 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,657
s488787810
p04033
u672898046
1583813479
Python
Python (3.4.3)
py
Accepted
17
3060
205
a, b = map(int,input().split()) num = (b-a)+1 if a > 0: print("Positive") elif b < 0 and num%2==0: print("Positive") elif b < 0 and num%2!=0: print("Negative") 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,658
s835831068
p04033
u686713618
1583769425
Python
Python (3.4.3)
py
Accepted
18
3060
275
def mium(): a, b = map(int, input().split()) if a > 0: print("Positive") elif a == 0: print("Zero") elif b >= 0: print("Zero") else: if ( b - a ) % 2 == 1: print("Positive") else: print("Negative") if __name__ == "__main__": mium()
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,659
s820395526
p04033
u693716675
1583461967
Python
Python (3.4.3)
py
Accepted
17
3060
195
a,b = [int(i) for i in input().split()] if a<=0 and 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,660
s999685128
p04033
u912115033
1583358029
Python
Python (3.4.3)
py
Accepted
18
2940
167
a,b = map(int,input().split()) if a*b <= 0: print('Zero') elif a > 0: print('Positive') elif (b-a+1)%2 == 0: print('Positive') else: print('Negative')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,661
s224982961
p04033
u189487046
1583279871
Python
Python (3.4.3)
py
Accepted
17
2940
226
a, b = map(int, input().split()) if a <= 0 <= b: print('Zero') elif a > 0 and b > 0: print('Positive') elif a < 0 and b < 0: if (abs(a-b)+1) % 2 == 0: print('Positive') else: print('Negative')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,662
s793273921
p04033
u002459665
1583042390
Python
Python (3.4.3)
py
Accepted
17
2940
224
a, b = list(map(int, input().split())) if a > 0: ans = 'Positive' elif a <= 0 <= b: ans = 'Zero' else: neg = b - a + 1 if neg % 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,663
s817693388
p04033
u002459665
1583042347
Python
Python (3.4.3)
py
Accepted
18
3060
230
a, b = list(map(int, input().split())) if a > 0: ans = 'Positive' elif a <= 0 and b >= 0: ans = 'Zero' else: neg = b - a + 1 if neg % 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,664
s038953062
p04033
u263933075
1582942287
Python
Python (3.4.3)
py
Accepted
17
2940
145
a,b=map(lambda x:int(x),input().split()) if a*b<=0: print('Zero') elif a>0 or (b-a+1)%2==0: print('Positive') else: print('Negative')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,665
s352382783
p04033
u217627525
1582752548
Python
Python (3.4.3)
py
Accepted
17
2940
156
a,b=map(int,input().split()) if a>0: 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,666
s203859617
p04033
u609814378
1582574487
Python
Python (3.4.3)
py
Accepted
17
2940
189
a, b = [int(x) for x in input().split()] if a > 0: print('Positive') elif a <= 0 and 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,667
s007571293
p04033
u606523772
1582547533
Python
Python (3.4.3)
py
Accepted
17
3060
188
a, b = map(int, input().split()) if a<0 and b<0: cnt = b-a+1 print("Positive") if cnt%2 == 0 else print("Negative") elif a<0 and b>=0: print("Zero") else: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,668
s028989519
p04033
u732412551
1582495126
Python
Python (3.4.3)
py
Accepted
17
3060
153
a,b=map(int, input().split()) if a<=0<=b: print("Zero") elif 0<a: print("Positive") elif b-a&1: print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,669
s619903577
p04033
u112317104
1582422499
Python
Python (3.4.3)
py
Accepted
24
3316
301
def solve(): N, M = map(int, input().split()) if N > 0: return 'Positive' elif N <= 0 <= M: return 'Zero' else: if (-(N-M)+1) % 2 == 0: return 'Positive' else: return 'Negative' return 0 print(solve())
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,670
s733046376
p04033
u556589653
1582235161
Python
Python (3.4.3)
py
Accepted
17
3060
274
a,b = map(int,input().split()) if a == 0 or b == 0: print("Zero") else: if 0<a<=b: print("Positive") elif a<=0<b: print("Zero") elif a<=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,671
s340007125
p04033
u114954806
1582087771
Python
Python (3.4.3)
py
Accepted
17
3060
198
a,b=map(int,input().split()) positive=0 zero=int(a<=0<=b) negative=0 if b<0: negative=b-a+1 elif 0<a: positive=b-a+1 print('Zero' if zero==1 else 'Negative' if negative%2!=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,672
s336685421
p04033
u062068953
1582006474
Python
Python (3.4.3)
py
Accepted
17
2940
188
x=input().split() a=int(x[0]) b=int(x[1]) if a>0: print('Positive') 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,673
s721547703
p04033
u348868667
1581982189
Python
Python (3.4.3)
py
Accepted
17
3060
371
def main(): a,b = map(int,input().split()) if a > 0: if b > 0: print("Positive") else: print("Zero") else: if b >= 0: print("Zero") else: if (a-b)%2 == 0: print("Negative") else: print...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,674
s970061638
p04033
u126823513
1581858076
Python
Python (3.4.3)
py
Accepted
17
2940
236
a, b = map(int, input().split()) if a <= 0 <= b: print('Zero') else: if b < 0: if (abs(a + b) + 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,675
s498649242
p04033
u749770850
1581805755
Python
Python (3.4.3)
py
Accepted
17
2940
223
a, b = map(int, input().split()) if a < 0 and b > 0: print("Zero") elif a > 0: print("Positive") elif b < 0 and a < 0: if (b - a + 1) % 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,676
s946592445
p04033
u080364835
1581798776
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 (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,677
s899021937
p04033
u867848444
1581739775
Python
Python (3.4.3)
py
Accepted
17
3060
203
a,b=map(int,input().split()) ans=['Positive','Negative','Zero'] if a*b<=0: print(ans[-1]) elif a>0: print(ans[0]) else: if (b-a+1)%2==0: print(ans[0]) else: print(ans[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,678
s983570697
p04033
u268792407
1581729117
Python
Python (3.4.3)
py
Accepted
19
2940
178
a,b=map(int,input().split()) if a*b<=0: print("Zero") else: if 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,679
s271931403
p04033
u995062424
1581277168
Python
Python (3.4.3)
py
Accepted
17
3060
222
a, b = map(int, input().split()) if(a > 0): print("Positive") elif(a < 0 and b >= 0): print("Zero") elif(a < 0 and b < 0): if((abs(a-b)+1)%2 == 0): print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,680
s156186288
p04033
u861141787
1581243479
Python
Python (3.4.3)
py
Accepted
20
3316
166
a, b = map(int, input().split()) if a <= 0 and b >= 0: print("Zero") elif a < 0 and 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,681
s455471857
p04033
u428132025
1581224042
Python
Python (3.4.3)
py
Accepted
17
2940
210
a, b = map(int, input().split()) if a <= 0 and b > 0: print('Zero') exit(0) if a > 0: print('Positive') exit(0) num = 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,682
s553739850
p04033
u257018224
1581209149
Python
Python (3.4.3)
py
Accepted
18
2940
188
a,b=map(int,input().split()) if a*b<=0: print("Zero") elif a>0 : print("Positive") elif b<0 and (a-b+1)%2==0: print("Positive") elif b<0 and (a-b+1)%2==1: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,683
s921689246
p04033
u185424824
1581096656
Python
Python (3.4.3)
py
Accepted
19
3060
184
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,684
s177262931
p04033
u488401358
1580928419
Python
Python (3.4.3)
py
Accepted
17
2940
179
a,b=map(int,input().split()) if 0>=a*b: print('Zero') elif a>0: 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,685
s164055480
p04033
u829950013
1580791990
Python
Python (3.4.3)
py
Accepted
17
3060
215
n,m=map(int,input().split()) if ((n<0 and m>0) or n==0 or m==0): print("Zero") if (n>0 and m>0): print('Positive') if (m<0): if ((m-n)%2==0): print("Negative") else: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,686
s720186919
p04033
u353855427
1580765941
Python
Python (3.4.3)
py
Accepted
17
2940
188
A,B = map(int,input().split()) if 0 < A and A <= B: print("Positive") elif B < 0 and A <= B: 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,687
s268923576
p04033
u648212584
1580764920
Python
Python (3.4.3)
py
Accepted
17
2940
418
import sys input = sys.stdin.buffer.readline def main(): A,B = map(int,input().split()) if A > 0: print("Positive") elif A == 0: print("Zero") else: if B >= 0: print("Zero") else: n = B-A+1 if n%2 == 0: print("Positive"...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,688
s313007097
p04033
u762420987
1580498919
Python
Python (3.4.3)
py
Accepted
17
3060
207
a, b = map(int, input().split()) if a < 0 and b < 0: if (a + b) % 2 == 0: print("Negative") else: print("Positive") elif a > 0 and b > 0: print("Positive") else: print("Zero")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,689
s382674261
p04033
u589578850
1580422196
Python
Python (3.4.3)
py
Accepted
17
3060
299
a,b = map(int,input().split()) if a > 0: result = "Positive" elif a == 0: result = "Zero" else: if b >= 0: result = "Zero" else: c = b - a if c % 2 == 0: result = "Negative" else: result = "Positive" 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,690
s192445316
p04033
u762420987
1580414726
Python
Python (3.4.3)
py
Accepted
17
2940
218
a, b = map(int, input().split()) if a < 0 and b < 0: if (abs(a) - abs(b)) % 2 == 0: print("Negative") else: print("Positive") elif a > 0 and b > 0: print("Positive") else: print("Zero")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,691
s241185631
p04033
u102242691
1580098858
Python
Python (3.4.3)
py
Accepted
17
2940
196
a,b = map(int,input().split()) if a <= 0 <= b: print("Zero") elif b < 0: if ((b-a)-1) % 2 == 0: print("Positive") else: print("Negative") else: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,692
s606597950
p04033
u683134447
1580063191
Python
Python (3.4.3)
py
Accepted
17
2940
191
a,b = map(int,input().split()) if a * b <= 0: print("Zero") elif a > 0: print("Positive") else: if (b - a) % 2 == 0: print("Negative") else: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,693
s155726695
p04033
u743272507
1579911353
Python
Python (3.4.3)
py
Accepted
17
2940
177
a,b = map(int,input().split()) b += 1 if 0 < a: print("Positive") elif a <= 0 < b: print("Zero") elif (b - a) % 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,694
s254403103
p04033
u476418095
1579895900
Python
Python (3.4.3)
py
Accepted
17
3060
215
n,m=map(int,input().split()) if ((n<0 and m>0) or n==0 or m==0): print("Zero") if (n>0 and m>0): print('Positive') if (m<0): if ((m-n)%2==0): print("Negative") else: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,695
s166185378
p04033
u863044225
1579707703
Python
Python (3.4.3)
py
Accepted
17
2940
167
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,696
s622699412
p04033
u970197315
1579662612
Python
Python (3.4.3)
py
Accepted
17
3060
319
# B si = lambda: input() ni = lambda: int(input()) nm = lambda: map(int, input().split()) nl = lambda: list(map(int, input().split())) a,b=nm() if a<=0<=b: print('Zero') elif b<0: if (b-a+1)%2==1: print('Negative') elif (b-a+1)%2==0: print('Positive') elif 0<a: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,697
s536906358
p04033
u557168336
1579144200
Python
Python (3.4.3)
py
Accepted
17
2940
194
import sys input = sys.stdin.readline A, B = map(int,input().split()) if A*B<=0: res = "Zero" elif A>0: res = "Positive" elif (B-A+1)%2: res = "Negative" else: res = "Positive" print(res)
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,698
s529845907
p04033
u987164499
1579048277
Python
Python (3.4.3)
py
Accepted
17
3060
237
from sys import stdin a,b = [int(x) for x in stdin.readline().rstrip().split()] if b < 0: if (b-a)%2 == 1: print("Positive") else: 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,699
s598085906
p04033
u273010357
1579014386
Python
Python (3.4.3)
py
Accepted
17
3060
220
a,b = map(int, input().split()) if a>0: print('Positive') elif a<0: if b<0 and (b-a+1)%2==0: print('Positive') elif b<0 and (b-a+1)%2==1: print('Negative') elif 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,700
s533432468
p04033
u263226212
1578874188
Python
Python (3.4.3)
py
Accepted
17
2940
236
# -*- coding: utf-8 -*- a, b = map(int, input().split()) if 0 < a <= b: ans = 'Positive' elif a <= b < 0: if (b - a + 1) % 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,701
s311311094
p04033
u614875193
1578608964
Python
Python (3.4.3)
py
Accepted
17
2940
155
a,b=map(int,input().split()) if a>0: print('Positive') elif b>=0: print('Zero') elif (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,702
s173800858
p04033
u386089355
1578590025
Python
Python (3.4.3)
py
Accepted
17
3060
217
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") 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,703
s114394664
p04033
u864197622
1578208744
Python
Python (3.4.3)
py
Accepted
17
2940
148
a, b = map(int, input().split()) if a <= 0 <= b: print("Zero") elif a > 0 or (b-a+1) % 2 == 0: print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,704
s735034594
p04033
u626468554
1578172066
Python
Python (3.4.3)
py
Accepted
17
2940
246
a, b = map(int,input().split()) if a*b <= 0: print("Zero") else: if a > 0 and b > 0: print("Positive") else: memo = b-a if memo%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,705
s656162370
p04033
u416223629
1578041932
Python
Python (3.4.3)
py
Accepted
17
3060
236
a,b=map(int,input().split()) if 0<a: print('Positive') elif a==0: print('Zero') elif a<0 and b>=0: print('Zero') elif a<0 and b<0: if len(range(a,b+1))%2==1: print('Negative') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,706
s708962335
p04033
u060569392
1577766031
Python
Python (3.4.3)
py
Accepted
22
3444
162
a,b=map(int,input().split()) if 0<a<b: 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,707
s725174849
p04033
u760794812
1577762915
Python
Python (3.4.3)
py
Accepted
17
3060
173
a,b = map(int,input().split()) if a>0: Answer = 'Positive' elif b >= 0: Answer = 'Zero' elif (b-a)%2 ==0: Answer = 'Negative' else: Answer = 'Positive' print(Answer)
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,708
s502062501
p04033
u102461423
1577381647
Python
Python (3.4.3)
py
Accepted
17
3060
317
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines a,b = map(int,read().split()) if a > 0: print('Positive') exit() if a <= 0 and 0 <= b: print('Zero') exit() x = b - a + 1 if x & 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,709
s509114375
p04033
u225388820
1577375016
Python
Python (3.4.3)
py
Accepted
17
2940
140
a,b=map(int,input().split()) if a*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,710
s771703034
p04033
u994988729
1577161780
Python
Python (3.4.3)
py
Accepted
17
2940
250
a, b = map(int, input().split()) if a > 0: ans = "Positive" elif a <= 0 and b >= 0: ans = "Zero" else: if b == a: 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,711
s984369090
p04033
u905582793
1577034484
Python
Python (3.4.3)
py
Accepted
17
2940
163
a,b=map(int,input().split()) if a<=0<=b: print("Zero") elif a>0: print("Positive") elif (b-a+1)%2: print("Negative") elif (b-a+1)%2 == 0: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,712
s820739086
p04033
u774160580
1577002014
Python
Python (3.4.3)
py
Accepted
17
2940
183
a, b = map(int, input().split()) if a * b <= 0: print("Zero") elif 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,713
s571324327
p04033
u896741788
1576797724
Python
Python (3.4.3)
py
Accepted
17
2940
141
a,s=map(int,input().split()) if a*s<=0:ans="Zero" else: if a<0: ans=("Positive","Negative")[(s-a+1)%2] 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,714
s628310327
p04033
u209619667
1576780375
Python
Python (3.4.3)
py
Accepted
18
3060
185
A,B = map(int,input().split()) b = [] count = 0 if A <0 and B<0: A =A + B if A <= 0 and B >= 0: print('Zero') elif A<0 and 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,715
s076049327
p04033
u984276646
1576648466
Python
Python (3.4.3)
py
Accepted
19
3060
222
a, b = map(int, input().split()) if (a > 0 and b > 0) or (a < 0 and b < 0 and (b - a - 1) % 2 == 0): print('Positive') elif a * b <= 0: print('Zero') elif (a < 0 and b < 0 and (b - a - 1) % 2 == 1): print('Negative')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,716