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
s296857780
p04033
u318127926
1588466721
Python
Python (3.4.3)
py
Accepted
17
2940
158
a, b = map(int, input().split()) if a>0: print('Positive') elif b>=0: print('Zero') elif (b-a)%2==0: print('Negative') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,517
s874069914
p04033
u442877951
1588458960
Python
Python (3.4.3)
py
Accepted
17
3060
270
a,b = map(int,input().split()) if a <= 0 and b >= 0: print("Zero") elif a < 0 and b < 0: if (a-b+2)%2 != 0: print("Positive") else: print("Negative") elif a < 0: if -a%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,518
s940166524
p04033
u282657760
1588449748
Python
Python (3.4.3)
py
Accepted
17
3060
180
a, b = map(int, input().split()) if a<=0 and b>=0: ans = 'Zero' elif a>0: ans = 'Positive' else: if (b-a)%2 == 0: ans = 'Negative' else: ans = 'Positive' print(ans)
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,519
s768476011
p04033
u940780117
1588388262
Python
Python (3.4.3)
py
Accepted
17
3060
232
a,b=map(int,input().split()) if a>0 and b>0: print('Positive') if a==0 or b==0: print('Zero') if a<0 and b<0: if (a-b)%2!=0: print('Positive') else: print('Negative') if 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,520
s823360155
p04033
u152614052
1588387680
Python
Python (3.4.3)
py
Accepted
17
2940
166
a,b = map(int,input().split()) if a>0: print("Positive") elif b >= 0 >= a: print("Zero") elif (b-a+1)%2==0: print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,521
s301779815
p04033
u596979123
1588383283
Python
Python (3.4.3)
py
Accepted
17
2940
224
a, b = map(int, input().split()) if a > 0 and b > 0: print('Positive') elif a == 0 or b == 0: print('Zero') elif a * 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,522
s365380019
p04033
u163874353
1588376050
Python
Python (3.4.3)
py
Accepted
18
3060
220
a, b = map(int, input().split()) if a >= 1: print("Positive") elif a <= 0 and 0 <= b: print("Zero") elif a < 0 and 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,523
s391502023
p04033
u349444371
1588374185
Python
Python (3.4.3)
py
Accepted
18
3060
150
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,524
s429360871
p04033
u201234972
1588357120
Python
Python (3.4.3)
py
Accepted
17
2940
291
def main(): a, b = map( int, input().split()) if a > 0: print("Positive") return if a <= 0 and b >= 0: print("Zero") return if (b-a+1)%2 == 0: print("Positive") else: print("Negative") if __name__ == '__main__': main()
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,525
s641821360
p04033
u156815136
1588353453
Python
Python (3.4.3)
py
Accepted
40
5272
988
from statistics import median #import collections #aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0] from fractions import gcd from itertools import combinations # (string,3) 3回 from collections import deque from collections import defaultdict import bisect # # d = m - k[i] - k[j] # ...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,526
s888619120
p04033
u638902622
1588313551
Python
Python (3.4.3)
py
Accepted
21
3316
1,779
import sys ## io ## def IS(): return sys.stdin.readline().rstrip() def II(): return int(IS()) def MII(): return list(map(int, IS().split())) def MIIZ(): return list(map(lambda x: x-1, MII())) ## dp ## def DD2(d1,d2,init=0): return [[init]*d2 for _ in range(d1)] def DD3(d1,d2,d3,init=0): return [DD2(d2,d3,init) for _ in...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,527
s284682138
p04033
u614181788
1588295540
Python
Python (3.4.3)
py
Accepted
17
3060
257
a,b = map(int,input().split()) if a > 0: ans = 1 elif a <= 0 and b >= 0: ans = 0 else: if (b-a+1)%2 == 0: ans = 1 else: ans = -1 if ans == 1: print("Positive") elif ans == 0: 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,528
s382188411
p04033
u103902792
1588292119
Python
Python (3.4.3)
py
Accepted
18
3060
163
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,529
s533524955
p04033
u294384845
1588272592
Python
Python (3.4.3)
py
Accepted
17
2940
200
a,b=map(int,input().split()) if ( a<0 and b>0 ) or ( a>0 and b<0 ) or a==0 or b==0: print('Zero') else: if a>0 and b>0: print('Positive') else: c=b-a print('Positive' if c&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,530
s492320984
p04033
u578694888
1588263743
Python
Python (3.4.3)
py
Accepted
19
2940
210
# -*- coding: utf-8 -*- a,b=map(int,input().split()) if a>0: print("Positive") elif a<=0 and b>=0: print("Zero") else: if (a-b)%2==0: print("Negative") else: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,531
s891109799
p04033
u690037900
1588220135
Python
Python (3.4.3)
py
Accepted
18
3064
308
import sys input = sys.stdin.buffer.readline a,b=map(int,input().split()) if a>0: print("Positive") exit(0) elif a<=0 and 0<=b: print("Zero") exit(0) elif a<0 and b<0: num=b-a+1 if num%2==0: print("Positive") exit(0) else: print("Negative") exit(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,532
s733782271
p04033
u548624367
1588217971
Python
Python (3.4.3)
py
Accepted
17
2940
134
a,b = map(int,input().split()) if b<0: print("Positive" if (b-a)%2 else "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,533
s362270169
p04033
u798260206
1588201785
Python
Python (3.4.3)
py
Accepted
17
3064
282
a,b = map(int,input().split()) #0が含まれていたら0.あとは負の数で場合分け if a<=0 and 0<=b: print("Zero") elif a>0 and b>0: print("Positive") elif a<0 and b<0: number = abs(a-b)+1 if number%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,534
s214978552
p04033
u306950978
1588169085
Python
Python (3.4.3)
py
Accepted
17
3060
252
a, b = map(int,input().split()) if a > 0 and b > 0: print("Positive") elif (a == 0 or b == 0) or (a<0 and b>0): print("Zero") elif a < 0 and b < 0: 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,535
s729417852
p04033
u329706129
1588168171
Python
Python (3.4.3)
py
Accepted
17
3060
181
a, b = map(int, input().split()) if (a > 0 and b > 0): print('Positive') elif (a * b <= 0): print('Zero') elif ((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,536
s572338221
p04033
u102242691
1588042495
Python
Python (3.4.3)
py
Accepted
17
2940
207
a,b = map(int,input().split()) if a > 0: print("Positive") elif a <= 0 and 0 <= b: print("Zero") elif b < 0: if abs(b-a) % 2 == 1: print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,537
s722567770
p04033
u156815136
1587925419
Python
Python (3.4.3)
py
Accepted
36
5084
884
from statistics import median #import collections #aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0] from fractions import gcd from itertools import combinations # (string,3) 3回 from collections import deque from collections import defaultdict import bisect # # d = m - k[i] - k[j] # ...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,538
s197774261
p04033
u731322489
1587912987
Python
Python (3.4.3)
py
Accepted
17
2940
194
a, b = map(int, input().split()) ans = "" if a < 0 and b > 0: ans = "Zero" elif a > 0: ans = "Positive" else: ans = "Positive" if abs(a - b + 1) % 2 == 0 else "Negative" print(ans)
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,539
s420472948
p04033
u641446860
1587875138
Python
Python (3.4.3)
py
Accepted
18
3060
201
a, b = map(int, input().split()) if a <= 0 and b >= 0: print('Zero') elif a > 0: print('Positive') elif b < 0: if (b-a)%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,540
s304620116
p04033
u141410514
1587868938
Python
Python (3.4.3)
py
Accepted
18
3060
212
a,b = map(int,input().split()) if a <= 0 and b >= 0: print("Zero") elif a > 0: print("Positive") elif b < 0: tmp = b-a if tmp %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,541
s658305332
p04033
u202570162
1587856731
Python
Python (3.4.3)
py
Accepted
17
2940
138
A,B=map(int,input().split()) if A<=0<=B: print('Zero') elif 0<A: print('Positive') else: print('Positive' if (B-A+1)%2==0 else 'Negative')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,542
s535366784
p04033
u276204978
1587706858
Python
Python (3.4.3)
py
Accepted
17
2940
155
a, b = map(int, input().split()) if a <= 0 and 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,543
s981919104
p04033
u276115223
1587693824
Python
Python (3.4.3)
py
Accepted
18
3060
243
# AGC 002: A – Range Product a, b = [int(s) for s in 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,544
s335981225
p04033
u787059958
1587681647
Python
Python (3.4.3)
py
Accepted
17
2940
249
a, b = map(int, input().split()) if (a <= 0 and b >= 0): print('Zero') exit() elif(a < 0 and b < 0 and a < b): c = b - a + 1 if (c % 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,545
s499210644
p04033
u506910932
1587678153
Python
Python (3.4.3)
py
Accepted
17
2940
203
a, b = map(int, input().split()) if a * 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,546
s344094286
p04033
u886747123
1587612301
Python
Python (3.4.3)
py
Accepted
17
2940
149
a, b = map(int, input().split()) if a <= 0 <= b: print("Zero") elif 1 <= a 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,547
s592948624
p04033
u863442865
1587606212
Python
Python (3.4.3)
py
Accepted
21
3316
728
def main(): import sys input = sys.stdin.readline sys.setrecursionlimit(10**7) from collections import Counter, deque #from collections import defaultdict from itertools import combinations, permutations, accumulate, groupby, product from bisect import bisect_left,bisect_right from heapq...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,548
s567213471
p04033
u193264896
1587591677
Python
Python (3.4.3)
py
Accepted
17
3060
334
import sys readline = sys.stdin.buffer.readline MOD = 10**9+7 def main(): a, b = map(int, readline().split()) l = b-a+1 if a<=0 and 0<=b: ans = 'Zero' else: if l%2==0 or 0<a: ans = 'Positive' else: ans = 'Negative' print(ans) if __name__ == '__main_...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,549
s532243134
p04033
u474423089
1587573238
Python
Python (3.4.3)
py
Accepted
18
2940
142
a,b=map(int,input().split(' ')) if a<=0<=b: print("Zero") elif a > 0 or (abs(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,550
s927811875
p04033
u851106150
1587543206
Python
Python (3.4.3)
py
Accepted
17
3060
221
line = input().split(" ") a = int(line[0]) b = int(line[1]) if a > 0: print("Positive") elif a <= 0 and b >= 0: print("Zero") else: c = b - a + 1 if c % 2 == 0: print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,551
s018484516
p04033
u485566817
1587434406
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("Positive" if (b-a)%2 == 1 else "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,552
s128884212
p04033
u645250356
1587343837
Python
Python (3.4.3)
py
Accepted
36
5076
543
from collections import Counter,defaultdict,deque from heapq import heappop,heappush,heapify import sys,bisect,math,itertools,fractions,pprint sys.setrecursionlimit(10**8) mod = 10**9+7 INF = float('inf') def inp(): return int(sys.stdin.readline()) def inpl(): return list(map(int, sys.stdin.readline().split())) 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,553
s900785367
p04033
u312025627
1587343330
Python
Python (3.4.3)
py
Accepted
17
2940
291
def main(): a, b = (int(i) for i in input().split()) if a*b <= 0: print("Zero") elif 0 < a: print("Positive") else: if (b-a+1) % 2 == 0: print("Positive") else: print("Negative") if __name__ == '__main__': main()
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,554
s666386933
p04033
u716530146
1587332550
Python
Python (3.4.3)
py
Accepted
21
3316
395
#!/usr/bin/env python3 import sys, math, itertools, collections, bisect input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') inf = float('inf') ;mod = 10**9+7 mans = inf ;ans = 0 ;count = 0 ;pro = 1 a,b = map(int,input().split()) if a > 0: print("Positive") elif a <= 0 and 0 <= b: print("Zero") els...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,555
s747684486
p04033
u987164499
1587328358
Python
Python (3.4.3)
py
Accepted
17
3060
204
a,b = map(int,input().split()) if a <= 0 and b >= 0: print("Zero") elif a > 0: print("Positive") else: l = b-a+1 if l%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,556
s028894703
p04033
u198930868
1587327068
Python
Python (3.4.3)
py
Accepted
17
3060
232
i = input().split() a = int(i[0]) b = int(i[1]) if a < 0 and b > 0: print("Zero") elif a < 0 and b < 0: tmp = (a*-1) - (b*-1) + 1 if tmp % 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,557
s921750240
p04033
u535171899
1587313179
Python
Python (3.4.3)
py
Accepted
17
2940
214
a,b = map(int,input().split()) if a<=0<=b: print('Zero') else: if 0<a: print('Positive') else: if (b-a+1)%2==0: print('Positive') else: print('Negative')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,558
s148242110
p04033
u784022244
1587311587
Python
Python (3.4.3)
py
Accepted
17
2940
169
a,b=map(int, input().split()) if a>0: print("Positive") elif b>=0 and a<=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,559
s035266040
p04033
u368249389
1587311347
Python
Python (3.4.3)
py
Accepted
17
3060
313
# Problem A - Range Product # input a, b = map(int, input().split()) # calc 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: print("Positive") elif a<0 and b<0: nums = abs(b - a) + 1 if nums%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,560
s245005050
p04033
u556589653
1587302828
Python
Python (3.4.3)
py
Accepted
18
2940
170
a,b = map(int,input().split()) if a<=0<=b: print("Zero") elif a<=b<0: if (b-a+1)%2 == 1: 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,561
s462850327
p04033
u836737505
1587296707
Python
Python (3.4.3)
py
Accepted
17
3060
204
a,b = map(int, input().split()) if a == 0 or b == 0 or (a <= 0 and b >= 0): print("Zero") elif a>0 and b>0: print("Positive") elif (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,562
s404252495
p04033
u527993431
1587296345
Python
Python (3.4.3)
py
Accepted
17
3060
242
A,B=map(int,input().split()) count=0 if A==0 or B==0: print("Zero") exit() else: if A<0 and B>0: print("Zero") elif A>0: print("Positive") elif A<0 and B<0: if (abs(B)-abs(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,563
s110529125
p04033
u241159583
1587296145
Python
Python (3.4.3)
py
Accepted
17
2940
189
a, b = map(int, input().split()) if a > 0 and b > 0: ans = "Positive" elif a < 0 and b > 0: ans = "Zero" else: if abs(a-b+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,564
s770217365
p04033
u726615467
1587296055
Python
Python (3.4.3)
py
Accepted
17
3060
197
a, b = map(int, input().split()) if a <= 0 <= b: print('Zero') elif 0 < a: print('Positive') else: if (b - a + 1) % 2 > 0: print('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,565
s945042612
p04033
u761320129
1587295967
Python
Python (3.4.3)
py
Accepted
17
2940
165
a,b = map(int,input().split()) if a <= 0 <= b: print('Zero') elif a > 0: print('Positive') else: k = b-a + 1 print('Negative' if k%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,566
s098184878
p04033
u735335967
1587271303
Python
Python (3.4.3)
py
Accepted
17
2940
207
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,567
s404290089
p04033
u461833298
1587260692
Python
Python (3.4.3)
py
Accepted
17
3060
196
a, b = map(int, input().split()) if a<=0 and b>=0: print('Zero') elif a<0 and b<0: if (b-a)%2==0: print('Negative') else: print('Positive') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,568
s289292349
p04033
u620868411
1587257622
Python
Python (3.4.3)
py
Accepted
17
3060
232
a,b = map(int, input().split()) if min(a,b)<0 and max(a,b)>0: print("Zero") exit() if min(a,b)>0: print("Positive") exit() c = -min(a,b) - max(a,b) + 1 if c%2==0: print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,569
s909937178
p04033
u086503932
1587239447
Python
Python (3.4.3)
py
Accepted
17
2940
150
a,b = map(int,input().split()) if a*b <= 0: print('Zero') else: if a > 0 or abs(b-a) % 2 == 1: print('Positive') else: print('Negative')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,570
s649273108
p04033
u297651868
1587237900
Python
Python (3.4.3)
py
Accepted
17
2940
184
a,b=map(int,input().split()) if a*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,571
s639571992
p04033
u430771494
1587236692
Python
Python (3.4.3)
py
Accepted
17
3060
199
a,b=list(map(int, input().split())) if a<=0 and b>=0: print('Zero') elif a<0 and b<0: if (a-b)%2==0: print('Negative') else: print('Positive') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,572
s964858179
p04033
u148551245
1587222394
Python
Python (3.4.3)
py
Accepted
19
3060
199
a, b = map(int, input().split()) # p = max(1, b) - max(1, a) + 1 n = min(-1, b) - min(0, a) + 1 if a <= 0 <= b: print("Zero") elif n % 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,573
s963437223
p04033
u266569040
1587173323
Python
Python (3.4.3)
py
Accepted
17
2940
216
a, b = map(int, input().split()) if 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") 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,574
s745115804
p04033
u371132735
1587168668
Python
Python (3.4.3)
py
Accepted
18
2940
221
# agc002_a.py A, B = map(int,input().split()) if A<=0 and B>=0: print('Zero') elif A>0 and B>0: print("Positive") elif A<0 and B<0: if (A-B)%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,575
s721345952
p04033
u021548497
1587166416
Python
Python (3.4.3)
py
Accepted
18
2940
207
a, b = map(int, input().split()) if a*b < 0: print("Zero") elif a > 0: print("Positive") elif a == 0 or b == 0: print("Zero") else: if (b-a)%2: print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,576
s872652254
p04033
u898999125
1587156658
Python
Python (3.4.3)
py
Accepted
17
3060
178
a, b=map(int, input().split()) ans='' if a<=0 and b>=0: ans='Zero' elif b<0: if (b-a+1)%2==0: ans='Positive' else: ans='Negative' else: ans='Positive' print(ans)
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,577
s061534454
p04033
u306516971
1587155937
Python
Python (3.4.3)
py
Accepted
17
3060
196
a, b = map(int, input().split()) if a <= 0 and b >= 0: print("Zero") elif a>0: print("Positive") 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,578
s768954982
p04033
u858670323
1587090317
Python
Python (3.4.3)
py
Accepted
18
2940
195
a,b=map(int,input().rstrip().split(' ')) if(a*b<=0): print("Zero") else: if(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,579
s197316589
p04033
u487594898
1587087417
Python
Python (3.4.3)
py
Accepted
17
2940
188
a,b = map(int,input().split()) if a*b < 0 or a*b==0: print('Zero') elif 1<=a : print('Positive') elif b <= -1 and abs(b-a) %2 ==0: print('Negative') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,580
s429672949
p04033
u985125584
1587085244
Python
Python (3.4.3)
py
Accepted
19
3060
209
a, b = map(int, input().split()) if a < 0 and b < 0: if (b - a) % 2 == 0: print('Negative') else: print('Positive') elif a < 0 and b >= 0: print('Zero') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,581
s228305595
p04033
u368796742
1587053166
Python
Python (3.4.3)
py
Accepted
18
3060
193
a,b = map(int,input().split()) if a <= 0 and b >= 0: print("Zero") elif a > 0: print("Positive") else: if (b-a)%2 == 0: print("Negative") else: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,582
s507152625
p04033
u114641312
1587009059
Python
Python (3.4.3)
py
Accepted
17
2940
907
# from math import factorial,sqrt,ceil,gcd # from itertools import permutations as permus # from collections import deque,Counter # import re # from decimal import Decimal, getcontext # # getcontext().prec = 1000 # # eps = Decimal(10) ** (-100) # import numpy as np # from scipy.sparse.csgraph import shortest_path, dij...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,583
s124233776
p04033
u340781749
1587008668
Python
Python (3.4.3)
py
Accepted
17
2940
239
def solve(a, b): if a <= 0 and 0 <= b: return 'Zero' if 0 < a: return 'Positive' length = b - a + 1 return 'Positive' if length % 2 == 0 else 'Negative' a, b = map(int, input().split()) print(solve(a, b))
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,584
s333604728
p04033
u340781749
1587008622
Python
Python (3.4.3)
py
Accepted
18
2940
237
def solve(a, b): if a < 0 and 0 < b: return 'Zero' if 0 < a: return 'Positive' length = b - a + 1 return 'Positive' if length % 2 == 0 else 'Negative' a, b = map(int, input().split()) print(solve(a, b))
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,585
s999130354
p04033
u078349616
1586998461
Python
Python (3.4.3)
py
Accepted
18
3060
207
a, b = map(int, input().split()) if (a <= 0 and b >= 0) or (a >= 0 and b <= 0): print("Zero") elif a > 0: print("Positive") elif b < 0: print("Negative") if (abs(b-a)+1) % 2 == 1 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,586
s813881469
p04033
u286754585
1586979126
Python
Python (3.4.3)
py
Accepted
17
3060
174
a,b=map(int,input().split()) if (a>0): print("Positive") elif (a<=0 and b>=0): print("Zero") else: if ((b-a)%2==1): print("Positive") else: print("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,587
s793066141
p04033
u373047809
1586972600
Python
Python (3.4.3)
py
Accepted
17
2940
128
a, b = map(int, input().split()) p = "Positive" print(p if 0<a else "Zero" if a<0<b else "Negative" if b<0 and -~(b-a)%2 else p)
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,588
s094731064
p04033
u952467214
1586954531
Python
Python (3.4.3)
py
Accepted
18
3060
269
import sys sys.setrecursionlimit(10 ** 7) input = sys.stdin.readline a, b = map(int, input().split()) if a<=0 and b>=0: print('Zero') exit() if a>0 and b>0: print('Positive') exit() if (b-a)%2 == 0: print('Negative') else: print('Positive')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,589
s742090339
p04033
u057993957
1586928605
Python
Python (3.4.3)
py
Accepted
19
3060
222
a, b = list(map(int, input().split())) if a > 0 and b > 0: print("Positive") elif a < 0 and b < 0: if abs(b - a) % 2 == 1: print("Positive") else: 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,590
s279491978
p04033
u877415670
1586918615
Python
Python (3.4.3)
py
Accepted
18
2940
226
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 == 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,591
s766672973
p04033
u572373398
1586909471
Python
Python (3.4.3)
py
Accepted
18
3060
214
a, b = map(int, input().split()) if a > 0 and b > 0: print('Positive') elif a < 0 and b < 0: if ((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,592
s293834458
p04033
u301624971
1586905334
Python
Python (3.4.3)
py
Accepted
17
3060
543
def myAnswer(a:int,b:int) -> str: # ゼロがまたがっている場合はzero ex)-1 2 if(a <= 0 and b >= 0): return "Zero" if(a < 0):# aが負の数で if(b < 0): # bも負の数だった場合は,負の数の個数をカウントし、奇数ならNegative,偶数ならポジティブ return "Negative" if((abs(a-b) + 1)%2==1) else "Positive" else: return "Positive" def modelAnswer(): ...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,593
s156593046
p04033
u301624971
1586905128
Python
Python (3.4.3)
py
Accepted
19
3064
413
def myAnswer(a:int,b:int) -> str: if(a <= 0 and b >= 0): return "Zero" if(a < 0): if(b < 0): return "Negative" if((abs(a-b) + 1)%2==1) else "Positive" else: return "Negative" if(abs(a)%2==1) else "Positive" else: return "Positive" def modelAnswer(): tmp=1 def 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,594
s629189549
p04033
u159994501
1586847148
Python
Python (3.4.3)
py
Accepted
17
2940
251
a, b = map(int, 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,595
s816321549
p04033
u818349438
1586792701
Python
Python (3.4.3)
py
Accepted
17
2940
177
a,b = map(int,input().split()) if a > 0:print('Positive') elif a <= 0 and b >= 0:print('Zero') else: if (b-a+1)%2: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,596
s006259558
p04033
u541610817
1586759772
Python
Python (3.4.3)
py
Accepted
17
2940
257
from bisect import bisect_right a, b = (int(x) for x in input().split()) if a <= 0 and 0 <= b: #0を含む print('Zero') elif 0 < a and 0 < b: #すべて正 print('Positive') else: #すべて負 print('Positive' if (b - a + 1)%2 == 0 else 'Negative')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,597
s183651044
p04033
u896791216
1586750617
Python
Python (3.4.3)
py
Accepted
17
3060
211
a, b = map(int, input().split()) if a <= 0 <= b: print("Zero") elif b < 0: subs = b - a + 1 if subs % 2 == 1: 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,598
s759842941
p04033
u977661421
1586747806
Python
Python (3.4.3)
py
Accepted
17
2940
211
# -*- coding: utf-8 -*- a, b = map(int,input().split()) if 0 < a: print("Positive") elif a * b <= 0: print("Zero") elif a < 0 and (b - a + 1) % 2 == 1: print("Negative") else: print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,599
s180199264
p04033
u803617136
1586730508
Python
Python (3.4.3)
py
Accepted
19
3060
254
a, b = map(int, input().split()) if a > 0 and b > 0: ans = 'Positive' elif a == 0 or b == 0: ans = 'Zero' elif a < 0 and 0 < b: ans = 'Zero' else: if (b - a) % 2 == 0: ans = 'Negative' else: ans = 'Positive' print(ans)
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,600
s383390012
p04033
u996434204
1586718298
Python
Python (3.4.3)
py
Accepted
18
2940
279
a,b = map(int,input().split()) if a > 0 and b > 0: print("Positive") elif a == 0 or b == 0: print("Zero") elif a < 0 and b > 0: print("Zero") elif a < 0 and b < 0: tmp = abs(a-b) if tmp % 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,601
s728587814
p04033
u060793972
1586707066
Python
Python (3.4.3)
py
Accepted
17
2940
154
a,b=map(int,input().split()) if a<=0 and 0<=b: print('Zero') elif b<0: print('Negative' if (b-a)%2==0 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,602
s876387444
p04033
u651109406
1586659336
Python
Python (3.4.3)
py
Accepted
17
3060
240
a, b = map(int, input().split()) if a > b: a, b = b, a if a <= 0 and b >= 0: print('Zero') elif a > 0 and b > 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,603
s746762519
p04033
u813174766
1586657364
Python
Python (3.4.3)
py
Accepted
17
2940
160
n,m=map(int,input().split()) if n > 0: print('Positive') elif n * m <= 0: print('Zero') elif (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,604
s419532294
p04033
u810356688
1586643036
Python
Python (3.4.3)
py
Accepted
17
2940
143
a,b=map(int,input().split()) if a<=0 and b>=0:print("Zero") elif a>0:print("Positive") elif (b-a)%2==0:print("Negative") else:print("Positive")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,605
s478618979
p04033
u000349418
1586638791
Python
Python (3.4.3)
py
Accepted
17
3060
202
a,b = map(int,input().split(' ')) if a > 0: ans = 'Positive' elif b >= 0: ans = 'Zero' else: n = b-a+1 if n%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,606
s800465842
p04033
u013202780
1586634529
Python
Python (3.4.3)
py
Accepted
17
2940
132
a,b=map(int,input().split()) if a<=0<=b: print ("Zero") elif (min(0,b)-a)%2: print ("Positive") else: print ("Negative")
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,607
s671704607
p04033
u426572476
1586630343
Python
Python (3.4.3)
py
Accepted
36
5172
3,071
import sys import heapq import re from itertools import permutations from bisect import bisect_left, bisect_right from collections import Counter, deque from fractions import gcd from math import factorial, sqrt from functools import lru_cache, reduce INF = 1 << 60 mod = 1000000007 sys.setrecursionlimit(10 ** 7) input ...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,608
s972718095
p04033
u241159583
1586627670
Python
Python (3.4.3)
py
Accepted
19
3060
203
a, b = map(int, input().split()) if a > 0 and b > 0: ans = "Positive" elif a < 0 and b < 0: if (abs(a-b) + 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,609
s086497343
p04033
u835924161
1586627198
Python
Python (3.4.3)
py
Accepted
18
3060
183
a,b=map(int,input().split()) if a<=0 and 0<=b: print("Zero") elif a>0: print("Positive") else: if (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,610
s804573589
p04033
u167908302
1586574769
Python
Python (3.4.3)
py
Accepted
17
3060
220
#coding:utf-8 a,b = map(int,input().split()) if a > 0 and b > 0: print('Positive') elif a < 0 and b > 0: print('Zero') elif a < 0 and b < 0 and (b-a+1) % 2 == 0: print('Positive') else: print('Negative')
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,611
s736552613
p04033
u021916304
1586405660
Python
Python (3.4.3)
py
Accepted
17
3064
379
def ii():return int(input()) def iim():return map(int,input().split()) def iil():return list(map(int,input().split())) def ism():return map(str,input().split()) def isl():return list(map(str,input().split())) a,b = iim() if a*b <= 0: print('Zero') elif a > 0: print('Positive') else: if abs(a-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,612
s221664504
p04033
u702303872
1586387082
Python
Python (3.4.3)
py
Accepted
18
2940
198
m=input().strip("\n").split(" ") a,b=int(m[0]),int(m[1]) if a>0: print("Positive") elif b<0: if (b-a)%2: 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,613
s996802795
p04033
u528470578
1586358112
Python
Python (3.4.3)
py
Accepted
17
2940
218
a, b = map(int, input().split()) if a > 0: 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,614
s780436819
p04033
u279493135
1586333894
Python
Python (3.4.3)
py
Accepted
42
5460
889
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_uppercase...
p04033
<span class="lang-en"> <div class="part"> <section> <h3>Problem Statement</h3><p>You are given two integers <var>a</var> and <var>b</var> (<var>a≤b</var>). Determine if the product of the integers <var>a</var>, <var>a+1</var>, <var>…</var>, <var>b</var> is positive, negative or zero.</p> </section> </div> <div class="p...
1 3
Positive
1,208,615
s540246195
p04033
u994307795
1586312585
Python
Python (3.4.3)
py
Accepted
17
2940
131
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,616