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 stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s505418782 | p02553 | u038819082 | 1600027715 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8880 | 55 | a,b,c,d=int(input().split())
print(max(a*c,a*d,b*c,b*d) |
s689901817 | p02553 | u939597971 | 1600027628 | Python | Python (3.8.2) | py | Runtime Error | 2313 | 3090436 | 226 | x = map(int,input().split())
list1 = list(x)
list2 = list(range(list1[0],list1[1]+1 ))
list3 = list(range(list1[2],list1[3]+1 ))
list4 = []
for i in list2:
for l in list3:
list4_a = list4.append(l*i)
print(max(list4)) |
s406516611 | p02553 | u314042989 | 1600027603 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9140 | 127 | a, b, c, d = map(int, input().split())
e = []
for i in list[a, b]:
for j in list[c, d]:
e += [i * j]
print(max(e)) |
s159294105 | p02553 | u587429593 | 1600027520 | Python | Python (3.8.2) | py | Runtime Error | 30 | 8968 | 194 | a, b, c, d = int(input()).split()
if b > 0 && d > 0:
print(b * d)
elif b < 0 && d > 0:
print(b * c)
elif b > 0 && d < 0:
print(a * d)
elif a < 0 && c < 0:
print(a * c)
else:
print(0) |
s366147992 | p02553 | u786150969 | 1600027481 | Python | Python (3.8.2) | py | Runtime Error | 2206 | 9204 | 601 | a,b,c,d = map(int,input().split())
ans = -10**9
if a <= b:
if 0 < b <= d:
ans1 = b*d
if a <= c < 0:
ans2 = a*c
print(max(ans1,ans2))
if ans != -10**9:
exit()
for x in range(a,b+1):
for y in range(c,d+1):
product = x * y
ans = max(ans,product... |
s802821465 | p02553 | u786150969 | 1600027441 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9056 | 597 | a,b,c,d = map(int,input().split())
ans = -10**9
if a <= b:
if 0 < b <= d:
ans1 = b*d
if a <= c < 0:
ans2 = a*c
print(max(ans1,ans2))
if ans != -10**9:
exit()
for x in range(a,b+1):
for y in range(c,d+1):
product = x * y
ans = max(ans,product... |
s450643418 | p02553 | u275893569 | 1600027270 | Python | Python (3.8.2) | py | Runtime Error | 2317 | 3081220 | 233 | a,b,c,d=(int(x) for x in input().split())
x = range(a,b+1)
y = range(c,d+1)
X = list(x)
Y = list(y)
max = X[0] * Y[0]
for i in range(1, len(X)):
for j in range(1, len(Y)):
if max < X[i] * Y[j]:
max = X[i] * Y[j]
print(max)
|
s981893604 | p02553 | u587429593 | 1600027225 | Python | Python (3.8.2) | py | Runtime Error | 28 | 8956 | 196 | a, b, c, d = int(input()).split()
if b > 0 && d > 0:
print(b * d)
elif b < 0 && d > 0:
print(b * c)
elif b > 0 && d < 0:
print(a * d)
elif b <= 0 && d <= 0:
print(a * c)
else:
print(0) |
s222482687 | p02553 | u941646913 | 1600027210 | Python | PyPy3 (7.3.0) | py | Runtime Error | 134 | 68560 | 113 | - - - -
0 2
- + - -
0 2
- - - +
0 2
+ + - -
1 3
+ + + -
1 2
- - + +
1 2
+ + + +
1 3
+ - - -
+ - + -
- - + - |
s241357707 | p02553 | u939597971 | 1600027184 | Python | Python (3.8.2) | py | Runtime Error | 2309 | 2963432 | 222 | x = map(int,input().split())
list1 = list(x)
list2 = list(range(list1[0],list1[1] ))
list3 = list(range(list1[2],list1[3] ))
list4 = []
for i in list1:
for l in list2:
list4_a = list4.append(l*i)
print(max(list4)) |
s785573306 | p02553 | u243815850 | 1600027110 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9184 | 197 | num = list(map(int, input().split()))
a,b,c,d = num[0],num[1],num[2],num[3]
mat = np.array([])
for i in [a,b]:
for j in [c,d]:
mat = np.append(mat, i*j)
print(int(np.max(mat)))
|
s102594241 | p02553 | u243815850 | 1600027076 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9028 | 192 | num = list(map(int, input().split()))
a,b,c,d = num[0],num[1],num[2],num[3]
mat = np.array([])
for i in [a,b]:
for j in [c,d]:
mat = np.append(mat, i*j)
print(np.max(mat))
|
s953039258 | p02553 | u114868394 | 1600026979 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9120 | 202 | if a>=0 and c>=0:
one=b
two=d
elif b<=0 and d<=0:
one=a
two=c
elif a>=0 and d<=0:
one=a
two=d
elif b<=0 and c>=0:
one=b
two=c
else:
one=b
two=d
print(one*two) |
s642292426 | p02553 | u799068099 | 1600026952 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9168 | 362 |
a=int(input())/10000000
b=int(input())/10000000
c=int(input())/10000000
d=int(input())/10000000
if b<=0 and d<=0 or a>=0 and b<=0 and c<=0 and d<=0 or a<=0 and b<=0 and c>=0 and d<=0:
print(a*c)
elif a>=0 and c>=0 or a<=0 and b>=0 and c>=0 and d>=0 or a>=0 and b>=0 and c<=0 and d>=0:
print(b*d)
elif b>=0 and d>=0... |
s610970367 | p02553 | u728422189 | 1600026914 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9208 | 380 | a, b, c, d = map(int, input().split())
l = [a,b,c,d]
if (all(i >= 0 for i in l)):
if a >= b:
x = a
else:
x = b
if c >= d:
y = c
else:
y = d
elif ((a>=0 and b>=0) and (c<=0 and d<=0)):
if a >= b:
x = b
else:
x = a
if c >= d:
y = c
else:
y = d
elif (all(i <= 0 for i in l)):
if a >= b:
x = b
el... |
s523531459 | p02553 | u114868394 | 1600026818 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9196 | 215 | a,b,c,d=list(map(int,input().split()))
if a>=0 and c>=0:
one=b
two=d
elif b<=0 and d<=0:
one=a
two=c
elif a>=0 and d<=0:
one=a
two=d
elif b<=0 and c>=0:
one=b
two=c
print(one*two) |
s875559834 | p02553 | u728422189 | 1600026801 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9212 | 393 | a, b, c, d = map(int, input().split())
l = [a,b,c,d]
if (all(i >= 0 for i in l)):
if a >= b:
x = a
else:
x = b
if c >= d:
y = c
else:
y = d
elif ((a>=0 and b>=0) and (c<=0 and d<=0)):
if a >= b:
x = b
else:
x = a
if c >= d:
y = c
else:
y = d
elif ((a<= 0 and b<=0) and (c<=0 and d<=0)):
if a >= ... |
s095535196 | p02553 | u799068099 | 1600026779 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9116 | 326 |
a=int(input())
b=int(input())
c=int(input())
d=int(input())
if b<=0 and d<=0 or a>=0 and b<=0 and c<=0 and d<=0 or a<=0 and b<=0 and c>=0 and d<=0:
print(a*c)
elif a>=0 and c>=0 or a<=0 and b>=0 and c>=0 and d>=0 or a>=0 and b>=0 and c<=0 and d>=0:
print(b*d)
elif b>=0 and d>=0:
print(max(a*c,b*d))
else:
prin... |
s553618430 | p02553 | u114868394 | 1600026702 | Python | Python (3.8.2) | py | Runtime Error | 34 | 9196 | 211 | a,b,c,d=list(map(int,input().split()))
if a>=0 and c>=0:
one=b
two=d
elif b<0 and d<0:
one=a
two=c
elif a>=0 and d<0:
one=a
two=d
elif b<0 and c>=0:
one=b
two=c
print(one*two) |
s912813527 | p02553 | u579746769 | 1600026663 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9244 | 389 | li=list(map(int,input().split()))
if (li[0] or li[1])>0:
if (li[2] or li[3])>0:
x=min(li[0],li[1]+1)
y=max(li[2],li[3]+1)
print(x*y)
else:
x=max(li[0],li[1]+1)
y=max(li[2],li[3]+1)
print(x*y)
else:
if (li[2] or li[3])>0:
x=mix(li[0],li[1]+1)
y=man(li[2],li[3]+1)
print(x*y)
e... |
s908733284 | p02553 | u865343871 | 1600026646 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9148 | 126 | a,b,c,d=map(int,input().split())
m = list()
list.append(a*c)
list.append(a*d)
list.append(b*c)
list.append(b*d)
print(max(m))
|
s928436528 | p02553 | u449580152 | 1600026639 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8944 | 325 | a,b,c,d=map(int,input().split())
if a => 0:
if c=>0:
ans = b*d
elif d =>0:
ans=b*d
else:
ans=a*d
else:
if b=>0:
if c=>0:
ans = b*d
elif d =>0:
if a*c < b*d:
ans = b*d
else:
ans= a*c
else:
ans=a*c
elif c=>0:
ans=b*c
else:
ans= a*c
print... |
s393547013 | p02553 | u916242112 | 1600026609 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8976 | 275 | a,b,c,d = map(int,input().split())
answer =0
if b < 0:
if c < 0:
answer = a*c
if c>=0:
answer = a * c
if b>=0:
if a <0:
answer = max(a*c ,b * d,0)
if a >= 0:
if d< 0:
if a == 0:
answer = 0
elif:
answer = a*d
if d>=0:
answer = b*d
print(answer)
|
s166698193 | p02553 | u561636464 | 1600026507 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8964 | 228 | import numpy as np
a, b, c, d = map(int, input().split())
products = np.zeros(6)
products[0] = a * b
products[1] = a * c
products[2] = a * d
products[3] = b * c
products[4] = b * d
products[5] = c * d
print(int(np.max(products)) |
s760490139 | p02553 | u662762430 | 1600026487 | Python | PyPy3 (7.3.0) | py | Runtime Error | 2335 | 3481800 | 303 | import math
input_num = list(map(int, input().split()))
max_num= -math.inf
def seki(x,y):
return x*y
x= list(range(input_num[0],input_num[1]+1))
for i in x:
if i>=0:
result =seki(i,input_num[3])
else:
result=seki(i,input_num[2])
if max_num< result:
max_num=result
print(max_num) |
s921495651 | p02553 | u892949870 | 1600026280 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9168 | 239 | a=int(input())
b=int(input())
c=int(input())
d=int(input())
maxValue = 999999999999999999999999999
for x in range(a,b):
for y in range(c,d):
if x*y < maxValue:
maxValue=x*y
else:
continue
print(maxValue)
|
s424975259 | p02553 | u844590940 | 1600026260 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9072 | 587 | a, b, c, d = map(int, input().split)
xmx = max([a, b])
xmin = min([a, b])
#xabsmx = max([a, b], key = abs)
#xabsmin = min([a, b],key = abs)
ymx = max([c, d])
ymin = min([c, d])
#yabsmx = max([c,d], key = abs)
#yabsmin = min([c, d],key = abs)
if xmin >= 0:#all X plus
if ymx <= 0:#all Y minas
print(xmin * ymx... |
s920316522 | p02553 | u400703709 | 1600026240 | Python | Python (3.8.2) | py | Runtime Error | 21 | 8976 | 320 | a,b,c,d = (int(x) for x in input().split())
if a*b=0 or c*d=0:
print(0)
elif a*b<=0 and c*d<=0:
if a*c > b*d:
print(a*c)
else:
print(b*d)
# print("-+-+")
elif b*d>=0:
# print("b:d>0")
print(b*d)
elif b<0:
# print("b<0")
print(b*c)
else:
# print("b>0")
print(a*d)
|
s899605081 | p02553 | u662762430 | 1600026239 | Python | PyPy3 (7.3.0) | py | Runtime Error | 2332 | 3517244 | 384 | import math
input_num = list(map(int, input().split()))
max_num = -math.inf
def seki(x, y):
return x*y
x = list(range(input_num[0], input_num[1]+1))
y = list(range(input_num[2], input_num[3]+1))
for i in x:
if i >= 0:
result = seki(i, input_num[3])
else:
result = seki(i, input_num[2])
... |
s175348477 | p02553 | u402228762 | 1600026126 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9028 | 197 | a = list(map(int,input().split()))
max_a = -10**30
import itertools
for i in itertools.combinations(a,2) :
#print(i[0]*i[1])
if( i[0]*i[1] > max_a):
max_a = i[0]*i[i]
print(max_a)
|
s503865132 | p02553 | u243815850 | 1600026123 | Python | Python (3.8.2) | py | Runtime Error | 2277 | 3559856 | 239 | import numpy as np
num = list(map(int, input().split()))
a,b,c,d = num[0],num[1],num[2],num[3]
mat = np.array([])
for i in np.arange(a,b+1):
for j in np.arange(c,d+1):
mat = np.append(mat, i*j)
print(int(np.max(mat))) |
s140001513 | p02553 | u799068099 | 1600026036 | Python | Python (3.8.2) | py | Runtime Error | 119 | 27144 | 151 | import numpy as np
e=np.empty(4)
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e[0]=a*c
e[1]=a*d
e[2]=b*c
e[3]=b*d
print(int(max(e))) |
s120588986 | p02553 | u184421630 | 1600026028 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9044 | 257 | lst = map(int, input().split())
x_lst = []
y_lst = []
max_lst = []
for i in range(2):
x_lst.append(lst[i])
y_lst.append(lst[(i+1)*-1])
for j in range(len(x_lst)):
for k in range(len(y_lst)):
max_lst.append(x_lst[j] * y_lst[k])
print(max(max_lst))
|
s202294127 | p02553 | u626337957 | 1600026018 | Python | PyPy3 (7.3.0) | py | Runtime Error | 111 | 68540 | 69 | a, b, c, d = map(int, input().split())
print(max(a*c, b*c, b*d a*d))
|
s040018645 | p02553 | u587429593 | 1600025951 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9016 | 161 | a, b, c, d = int(input()).split()
if b > 0 && d > 0:
print(b * d)
elif b < 0 && d > 0:
print(b * c)
elif b > 0 && d < 0:
print(a * d)
else:
print(a * c) |
s764418035 | p02553 | u847033024 | 1600025902 | Python | Python (3.8.2) | py | Runtime Error | 2233 | 698016 | 178 | a, b, c, d = map(int, input().split())
if b * d >= 0:
print(b * d)
else:
z = []
for x in range(a, b + 1):
for y in range(c, d + 1):
z.append(x * y)
print(max(z)) |
s998242097 | p02553 | u963963908 | 1600025900 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9156 | 62 | a,b,c,d = map(int,input().split())
print(max[a*c,a*d,b*c,b*d]) |
s089943813 | p02553 | u561636464 | 1600025883 | Python | Python (3.8.2) | py | Runtime Error | 2364 | 3539236 | 351 | import numpy as np
a, b, c, d = map(int, input().split())
x_num = b - a + 1
y_num = d - c + 1
x_list = np.arange(a, b + 1)
y_list = np.arange(c, d + 1)
ans = x_list[0] * y_list[0]
for i in range(x_num):
for j in range(y_num):
ans_temp = x_list[i] * y_list[j]
if ans < ans_temp:
ans = ans_... |
s884970217 | p02553 | u474162944 | 1600025879 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9176 | 172 | a,b,c,d=map(int,input().split())
if a < 0:
a = -a
if b < 0:
b = -b
if c < 0:
c = -c
if d < 0:
d = -d
if a <= b:
x = b
if c <= d:
y = d
print(x*y) |
s444735134 | p02553 | u310679274 | 1600025766 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9124 | 814 | if __name__ == "__main__":
a = int(input())
b = int(input())
c = int(input())
d = int(input())
if b <= 0 :
if d <= 0:
xy = a * c
elif d > 0:
if c > 0:
xy = b * c
elif c == 0:
xy = 0
elif c < 0:
... |
s779561480 | p02553 | u061835391 | 1600025741 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9168 | 162 | a,b,c,d=map(int,input().split())
if a>0 and c>0:
p=b
q=d
elif a>0 and c<0:
p=a
q=d
elif a<0 and c>0:
p=b
q=c
elif a<0 and c<0:
p=a
q=c
print(p*q)
|
s646270661 | p02553 | u737776037 | 1600025652 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9172 | 70 | a,b,c,d=(int(x) for x in input().split())
print(max[a*c,a*d,b*c,b*d])
|
s590957916 | p02553 | u061835391 | 1600025648 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9180 | 162 | a,b,c,d=map(int,input().split())
if a>0 and c>0:
p=b
q=d
elif a>0 and c<0:
p=a
q=d
elif a<0 and c>0:
p=b
q=c
elif a<0 and c<0:
p=a
q=c
print(p*q)
|
s713268816 | p02553 | u184421630 | 1600025614 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9212 | 227 | a = int(input())
b = int(input())
c = int(input())
d = int(input())
x_lst = [a, b]
y_lst = [c,d]
max_lst = []
for i in range(len(x_lst)):
for j in range(len(y_lst)):
max_lst.append(x_lst[i] * y_lst[j])
print(max(max_lst)) |
s151065222 | p02553 | u737776037 | 1600025579 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9156 | 65 | a,b,c,d=(int(x) for x in input().split())
print(max[ac,ad,bc,bd]) |
s410602355 | p02553 | u173925978 | 1600025574 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8920 | 67 | a,b,c,d = map(int, input().split())
print(max([a*c, a*d, b*c, b*d]) |
s894984875 | p02553 | u061835391 | 1600025537 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9172 | 131 | a,b,c,d=map(int,input().split())
if a>0 and c>0:
p=b
q=d
elif a>0 and c<0:
p=a
q=d
elif a<0 and c<0:
p=a
q=c
print(p*q) |
s644530243 | p02553 | u308914480 | 1600025530 | Python | Python (3.8.2) | py | Runtime Error | 33 | 9200 | 115 | a,b,c,d=map(int,input().split())
if x>=0 and y>=0:
print(b*d)
elif x>=0 and y<=0:
print(a*d)
else:
print(a*c) |
s943000537 | p02553 | u384860334 | 1600025510 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9108 | 204 | if a<0 and c<0:
print(a*c)
elif b>=0 and d>=0:
print(b*d)
elif b<0 and c>=0:
print(b*c)
elif a>=0 and d<0:
print(a*d)
else:
if a*c>=b*d:
print(a*c)
else:
print(b*d) |
s718866668 | p02553 | u052331051 | 1600025486 | Python | Python (3.8.2) | py | Runtime Error | 116 | 27160 | 146 | import numpy as np
if __name__ == "__main__":
a, b, c, d=(int(x) for x in input().split())
arr = [a*c, a*d, b*c, b*d]
print(arr.max()) |
s930345093 | p02553 | u440161695 | 1600025461 | Python | Python (3.8.2) | py | Runtime Error | 33 | 9032 | 222 | a,b,c,d = map(int,input().split())
if a >= 0:
if d <= 0:
print(a*d)
else:
print(b*d)
elif b>0:
if d<0:
print(a*c)
else:
print(max(a*c,b*d)
else:
if c>=0:
print(b*c)
else:
print(a*c) |
s100688728 | p02553 | u308914480 | 1600025388 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9160 | 149 | a,b,c,d=map(int,input().split())
if x>=0 and y>=0:
print(b*d)
elif x>=0 and y<=0:
print(a*d)
elif x<=0 and y<=0:
print(a*c)
else:
print(b*d)
|
s396550382 | p02553 | u184421630 | 1600025383 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9036 | 283 | lst = []
x_lst = []
y_lst = []
max_lst = []
lst.append(input())
for x in range(2):
x_lst.append(int(lst[x]))
y_lst.append(int(lst[(x+1) * -1])
for i in range(len(x_lst)):
for j in range(len(y_lst)):
max_lst.append(x_lst[i] * y_lst[j])
print(max(max_lst))
|
s769565865 | p02553 | u245383302 | 1600025378 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8984 | 309 | a,b,c,d=map(int,input().split())
List=[]
if a>=0 and c>=0:
List.append(b*d)
if b<=0 and d<=0:
List.append(a*c)
if a>=0 and d<=0:
List.append(a*d)
if b<=0 and c>=0:
List.append(b*c)
else:
for i in range(a,b+1):
for j in range(c,d+1):
if i>=0 and j>=0:
List.append(i*j)
print(max(List)) |
s387187350 | p02553 | u662762430 | 1600025363 | Python | PyPy3 (7.3.0) | py | Runtime Error | 2312 | 3359508 | 262 | import math
i = list(map(int, input().split()))
max_num= -math.inf
def seki(x,y):
return x*y
x= list(range(i[0],i[1]+1))
y= list(range(i[2],i[3]+1))
for i in x:
for j in y:
result =seki(i,j)
if max_num< result:
max_num=result
print(max_num) |
s981986499 | p02553 | u061835391 | 1600025338 | Python | Python (3.8.2) | py | Runtime Error | 2300 | 3114140 | 330 | a,b,c,d=map(int,input().split())
if a>0 and c>0:
l=list(range(a,b+1))
m=list(range(c,d+1))
p=max(l)
q=max(m)
c=p*q
elif a>0 and c<0:
l=list(range(d,c+1,-1))
m=list(range(a,b+1))
p=max(l)
q=min(m)
c=p*q
elif a<0 and c<0:
l=list(range(b,a-1,-1))
m=list(range(d,c-1,-1))
p=min(l)
q=min(m)
c=p*... |
s550255082 | p02553 | u187193817 | 1600025283 | Python | Python (3.8.2) | py | Runtime Error | 2314 | 3071072 | 425 | a = list(map(int, input().split()))
tmp = 0
if(len(a) != 4):
exit()
if(a[0] > a[1]):
tmp = a[1]
a[1] = a[0]
a[0] = tmp
if(a[2] > a[3]):
tmp = a[3]
a[3] = a[2]
a[2] = tmp
a_len = list(range((a[0]), a[1] + 1))
b_len = list(range((a[2]), a[3] + 1))
max = -100000
print(a_len, b_len)
for str1 ... |
s389807276 | p02553 | u595833382 | 1600025280 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8988 | 478 | nums = [int(x) for x in input().split()]
sign = [1] * 4
for x in range(4):
if nums[x] < 0:
sign[x] = 0
result = min(nums[0:2]) * min(nums[2:])
if sum(sign) == 1:
result = max(a[0:2]) * max(a[2:])
if sum(sign) == 2:
if (sign[0] == 1 and sign[1]) or (sign[2] == 1 and sign[3] == 1):
if sign... |
s629961780 | p02553 | u314042989 | 1600025261 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9180 | 127 | a, b, c, d = map(int, input().split())
a = []
for i in range(a, b + 1):
for j in range(c, d + 1):
a += i * j
max(a) |
s958168451 | p02553 | u767438459 | 1600025189 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9016 | 136 | a,b,c,d=map(int,input().split())
if a*b<=0 and c*d<=0:
print(max(a*c,b*d))
elif: b>0 and d>0
print(b*d)
else:
print(a*c) |
s175644400 | p02553 | u036531287 | 1600025188 | Python | Python (3.8.2) | py | Runtime Error | 39 | 9480 | 733 | import collections
a,b,c,d = input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
abi=int(min(a,b))
abm=int(max(a,b))
cdi=int(min(c,d))
cdm=int(max(c,d))
res1=[]
res2=[]
if abi<0 and abm<0:
res1=[abi,abm]
elif abi<0 and abm==0:
res1=[abi,-1,0]
elif abi<0 and abm>0:
res1=[abi,-1,0,1,abm]
elif abi==0 and abm==0:
r... |
s976916402 | p02553 | u200646150 | 1600025132 | Python | Python (3.8.2) | py | Runtime Error | 2305 | 2999292 | 160 | a,b,c,d=map(int,input().split())
x=list(range(a,b+1))
y=list(range(c,d+1))
for i in range(b-a+1):
for j in range(d-c+1):
e=[x[i]*y[j]]
print(max(e)) |
s178589992 | p02553 | u187193817 | 1600025119 | Python | Python (3.8.2) | py | Runtime Error | 2306 | 3006716 | 396 | a = list(map(int, input().split()))
tmp = 0
if(a[0] > a[1]):
tmp = a[0]
a[0] = a[1]
a[1] = tmp
if(a[2] > a[3]):
tmp = a[3]
a[3] = a[2]
a[2] = tmp
a_len = list(range((a[0]), a[1] + 1))
b_len = list(range((a[2]), a[3] + 1))
max = -100000
print(a_len, b_len)
for str1 in a_len:
for str2 in b_... |
s024939137 | p02553 | u609258687 | 1600025069 | Python | PyPy3 (7.3.0) | py | Runtime Error | 91 | 68760 | 175 | li = input().split()
# li = [3,5,-4,-2]
li1 = li[0:2]
li2 = li[2:4]
ans = -99999999999
for x in li1:
for y in li2:
if x*y > ans:
ans = x*y
print(ans) |
s562707382 | p02553 | u273914730 | 1600025038 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9164 | 138 | a=int(input())
b=int(input())
c=int(input())
d=int(input())
m=a*c
if a*d>m:
m=a*d
if b*c>m:
m=b*c
if b*d>m:
m=b*d
print(m)
|
s652024830 | p02553 | u561636464 | 1600025021 | Python | Python (3.8.2) | py | Runtime Error | 118 | 27172 | 321 | import numpy as np
a, b, c, d = map(int, input().split())
x_num = b - a + 1
y_num = d - c + 1
ans_matrix = np.zeros([x_num, y_num])
x_list = np.arange(a, b + 1)
y_list = np.arange(c, d + 1)
for i in range(x_num):
for j in range(y_num):
ans_matrix[i, j] = x_list[i] * y_list[j]
print(int(np.max(ans_matrix))... |
s126536046 | p02553 | u785618718 | 1600025000 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8952 | 68 | a,b,c,d = map(int, input().split()
print(max( [a*c,a*d,b*c,b*d] )) |
s513068587 | p02553 | u098165618 | 1600024983 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9248 | 483 | a, b, c, d = map(int, input().split())
if a == 0:
a = b
if b == 0:
b = a
if c == 0:
c = d
if d == 0:
d = c
if max(a, b) < 0 and max(c, d) > 0:
A = -min(abs(a), abs(b))
B = min(abs(c), abs(d))
elif max(a, b) > 0 and max(c, d) < 0:
A = min(abs(a), abs(b))
B = -min(abs(c), abs(d))
elif ma... |
s382279791 | p02553 | u746627216 | 1600024977 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9228 | 366 | a, b, c, d = map(int, input().split())
if a >= 0 and c >= 0:
ans = b * d
elif b < 0 and d < 0:
ans = a * c
elif a >= 0 and d <= 0:
if a == 0 or b == 0 or c == 0 or d == 0:
ans = 0
else:
ans = a * d
elif b <= 0 and c >= 0:
if a == 0 or b == 0 or c == 0 or d == 0:
ans = 0
... |
s999950363 | p02553 | u061835391 | 1600024975 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9224 | 333 | a,b,c,d=map(int,input().split())
if p>=0 and q>=0:
l=list(range(a,b+1))
m=list(range(c,d+1))
p=max(l)
q=max(m)
c=p*q
elif a>0 and c<0:
l=list(range(d,c+1,-1))
m=list(range(a,b+1))
p=max(l)
q=max(m)
c=p*q
elif a<0 and c<0:
l=list(range(b,a,-1))
m=list(range(d,c-1))
p=min(l)
q=min(m)
c=p*q
p... |
s073608727 | p02553 | u073729602 | 1600024972 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9096 | 106 | ans = -(10**9)
ans = max(a*c, ans)
ans = max(a*d, ans)
ans = max(b*c, ans)
ans = max(b*d, ans)
print(ans)
|
s371430412 | p02553 | u773081031 | 1600024967 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9144 | 66 | n = int(input())
x = n*(n-1)*2*(10**(n-2))
print(x%(10**9 + 7))
|
s658753680 | p02553 | u371712262 | 1600024961 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9180 | 174 | a = int(input())
b = int(input())
c = int(input())
d = int(input())
aa = a*c
bb = a*d
cc = b*c
dd = b*d
m = aa
if(m<bb):
m = bb
if(m<cc):
m = cc
if(m<dd):
m = dd
print(m)
|
s831118964 | p02553 | u036531287 | 1600024924 | Python | Python (3.8.2) | py | Runtime Error | 34 | 9476 | 593 | import collections
a,b,c,d = input().split()
abi=int(min(a,b))
abm=int(max(a,b))
cdi=int(min(c,d))
cdm=int(max(c,d))
res1=[]
res2=[]
if abi<0 and abm<0:
res1=[abi,abm]
elif abi<0 and abm==0:
res1=[abi,-1,0]
elif abi==0 and abm==0:
res1=[0]
elif abi==0 and abm>0:
res1=[0,1,abm]
elif abi>0 and abm>0:
res1=[abi,... |
s089290375 | p02553 | u184421630 | 1600024917 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9184 | 234 | a = int(input())
b = int(input())
c = int(input())
d = int(input())
x_lst = [a, b]
y_lst = [c, d]
max_lst = []
for i in range(len(x_lst)):
for j in range(len(y_lst)):
max_lst.append(x_lst[i] * y_lst[j])
print(max(max_lst)) |
s994458485 | p02553 | u323776907 | 1600024857 | Python | Python (3.8.2) | py | Runtime Error | 2232 | 736728 | 189 | a, b, c, d = map(int, input().split())
list_number = []
for i in range(a, b):
for j in range(c, d):
list_number.append(i * j)
new_number = sorted(list_number)
print(max(new_number)) |
s435806152 | p02553 | u444766154 | 1600024851 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9176 | 133 | s = int(input()).split()
a1 = s[0] * s[2]
a2 = s[0] * s[3]
a3 = s[1] * s[2]
a4 = s[1] * s[3]
list = (a1,a2,a3,a4)
print(max(list)) |
s890104681 | p02553 | u842033632 | 1600024837 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9108 | 183 | a, b, c, d = list(map(int, input().split()))
a += 1
c += 1
max = a*c
a*d = x
b*c = y
b*d = z
if max < x :
max = x
if max < y :
max = y
if max < z :
max = z
print(max) |
s550269791 | p02553 | u606784601 | 1600024826 | Python | PyPy3 (7.3.0) | py | Runtime Error | 98 | 68712 | 95 | for _ in range(int(input())):
a,b,c,d=map(int,input().split())
print(max(a*c,a*d,b*d,b*c))
|
s573845510 | p02553 | u298445293 | 1600024816 | Python | Python (3.8.2) | py | Runtime Error | 33 | 9176 | 192 | a,b,c,d = map(int,input().split())
A = a*c
B = a*d
if a<=0:
if b>=0:
C = 0
else:
C = a*c
if c <=0:
if d >=0:
D = 0
else:
D = a*c
E = b*c
F = b*d
print(max([A,B,C,D,E,F]))
|
s966390351 | p02553 | u746627216 | 1600024729 | Python | Python (3.8.2) | py | Runtime Error | 34 | 9172 | 212 | a, b, c, d = map(int, input().split())
if a > 0 and c > 0:
ans = b * d
elif b < 0 and d < 0:
ans = a * c
elif a >= 0 and d <= 0:
ans = a * d
elif b <= 0 and c >= 0:
ans = b * c
print(ans)
|
s065921153 | p02553 | u184421630 | 1600024725 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9184 | 234 | a = int(input())
b = int(input())
c = int(input())
d = int(input())
x_lst = [a, b]
y_lst = [c, d]
max_lst = []
for i in range(len(x_lst)):
for j in range(len(y_lst)):
max_lst.append(x_lst[i] * y_lst[j])
print(max(max_lst)) |
s673669245 | p02553 | u275893569 | 1600024725 | Python | Python (3.8.2) | py | Runtime Error | 2305 | 3106436 | 134 | a,b,c,d=(int(x) for x in input().split())
x = range(a,b+1)
y = range(c,d+1)
X = list(x)
Y = list(y)
MAX = max(X) * max(Y)
print(MAX) |
s674961914 | p02553 | u883621917 | 1600024715 | Python | PyPy3 (7.3.0) | py | Runtime Error | 151 | 68344 | 525 | import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
a, b, c, d = map(int, input().split())
if a >= 0 and c >= 0:
print(b * d)
sys.exit(0)
if b <= 0 and d <= 0:
print(a * c)
sys.exit(0)
if a <= 0 <= b and c <= 0 <= d:
print(max(a * c, b * d))
sys.exit(0)
if b <= 0 and c >= 0... |
s510170824 | p02553 | u073729602 | 1600024699 | Python | Python (3.8.2) | py | Runtime Error | 30 | 8988 | 108 | ans = a*c
if ans < a*d:
ans = a*d
elif ans < b*c:
ans = b*c
elif ans < b*d:
ans = b*d
print(ans) |
s508853906 | p02553 | u252828980 | 1600024687 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9004 | 63 | a,b,c d = map(int,input().split())
print(max(a*c,b*d,b*c,a*d)) |
s920913822 | p02553 | u371712262 | 1600024680 | Python | Python (3.8.2) | py | Runtime Error | 32 | 9200 | 190 | a = int(input())
b = int(input())
c = int(input())
d = int(input())
aa = a*c
bb = a*d
cc = b*c
dd = b*d
max = aa
if(max<bb):
max = bb
if(max<cc):
max = cc
if(max<dd):
max = dd
print(max)
|
s759790005 | p02553 | u645661835 | 1600024675 | Python | Python (3.8.2) | py | Runtime Error | 32 | 9240 | 485 | a, b, c, d = map(int, input().split())
if (a>=0) and (b>=0) and (c>=0) and (d>=0):
ans=b*d
elif (b<=0) and (d<=0):
ans=a*c
elif (a<=0) and (b>=0) and (c<=0) and (d>=0):
tmp1=a*c
tmp2=b*d
if tmp1>tmp2:
ans=tmp1
else:
ans=tmp2
elif (a>=0) and (b>=0) and (d<=0):
ans=a*d
elif (c>... |
s779322419 | p02553 | u005977014 | 1600024673 | Python | Python (3.8.2) | py | Runtime Error | 30 | 8960 | 189 | a,b,c,d=map(int,input().split())
if a<=0 and b<=0 and c<=0 and d<=0:
print(a*c)
elif a>=0 and b>=0 and c>=0 and d>=0:
print(b*d)
elif b>=0 and c<=0 d<=0:
print(b*c)
else:
print(a*d) |
s869495049 | p02553 | u835090251 | 1600024651 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9084 | 72 | a,b,c,d=map(int(),input().split())
maxa=max(a*c,a*d,b*c,b*d)
print(maxa) |
s761786756 | p02553 | u263173473 | 1600024620 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8964 | 170 | a,b,c,d=input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)d
list1=[]
list1.append(a*c)
list1.append(a*d)
list1.append(b*c)
list1.append(b*d)
list1.sort()
print(list1[3]) |
s103797910 | p02553 | u187193817 | 1600024538 | Python | Python (3.8.2) | py | Runtime Error | 2304 | 3093908 | 269 | a = list(map(int, input().split()))
print(a)
a_len = list(range((a[0]), a[1] + 1))
b_len = list(range((a[2]), a[3] + 1))
max = -100000
print(a_len, b_len)
for str1 in a_len:
for str2 in b_len:
if(str1 * str2 > max):
max = str1 * str2
print(max) |
s248218490 | p02553 | u589828039 | 1600024527 | Python | PyPy3 (7.3.0) | py | Runtime Error | 144 | 74700 | 246 | if b >= 0 and d >= 0 and a <= 0 and c <= 0:
e = b*d
f = a*c
if e > f:
print(e)
else:
print(f)
else:
e = abs(a)
f = abs(b)
g = abs(c)
h = abs(d)
l = [e,f,g,h]
l.sort()
print(-1*l[0]*l[1]) |
s079737781 | p02553 | u746627216 | 1600024525 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9172 | 216 | a, b, c, d = map(int, input().split())
if a >= 0 and c >= 0:
ans = b * d
elif b <= 0 and d <= 0:
ans = a * c
elif a >= 0 and d <= 0:
ans = a * d
elif b <= 0 and c >= 0:
ans = b * c
print(ans)
|
s546416008 | p02553 | u984901905 | 1600024522 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9208 | 253 | input_lines = input().split()
num_lines = []
a = int(input_lines[0])
b = int(input_lines[1])
c = int(input_lines[2])
d = int1(input_lines[3])
num_lines.append(a*c)
num_lines.append(a*d)
num_lines.append(b*c)
num_lines.append(b*d)
print(max(num_lines)) |
s354461858 | p02553 | u706625459 | 1600024518 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9000 | 144 | a,b,c,d=[int(_) for _ in input().split()]
if a<0 or b<0 or c<0 or d<0:
print(min(a,b)*max(c,d))
else:
print(max(a,b)*max(c,d))
5 -4 8 -1 |
s185744626 | p02553 | u073729602 | 1600024496 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9088 | 106 | ans = -(10**9)
ans = max(a*d, ans)
ans = max(b*d, ans)
ans = max(a*c, ans)
ans = max(b*c, ans)
print(ans)
|
s885996879 | p02553 | u039934639 | 1600024491 | Python | Python (3.8.2) | py | Runtime Error | 34 | 9208 | 358 | a,b,c,d = list(map(int, input().split()))
if a > 0 and b > 0 and c > 0 and d > 0:
ans = b * d
elif a < 0 and c > 0 and d > 0:
ans = b * d
elif a < 0 and b < 0 and c > 0 and d > 0:
ans = b * c
elif a > 0 and b > 0 and c < 0 and d < 0:
ans = a * d
elif a > 0 and b > 0 and c < 0 and d > 0:
ans = b * d
elif a < ... |
s088670124 | p02553 | u323776907 | 1600024483 | Python | Python (3.8.2) | py | Runtime Error | 2231 | 695968 | 156 | a, b, c, d = map(int, input().split())
list_number = []
for i in range(a, b):
for j in range(c, d):
list_number.append(i * j)
print(max(list_number)) |
s196603270 | p02553 | u252828980 | 1600024467 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9004 | 65 | a,b,c d = map(int,input().split())
print(max(a*c,b*d,b*c,a*d,0)) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.