TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
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)

a,b,c,d=map(int,input().split())
if a<0 and b<0 and c>=0 and d>=0:
  print(b*c)
elif 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(a*c)
elif 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 and abs(a*c)>=abs(b*d):
  print(a*c)
elif a>=0 and b>=0 and c<0 and d<0:
  print(a*d)
else:
  print(b*d)

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a, b, c, d = int(map(int, input().split()))
print(max(a*c, max(a*d, max(b*c, b*d))))


a, b, c, d = map(int, input().split())
print(max(a*c, max(a*d, max(b*c, b*d))))


Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(int,input().split())

if(a >= 0 and d <= 0):
    print(a*d)
elif(b<= 0 and d <= 0):
    print(a*c)
elif((b <= 0 and c >= 0) or (b > 0 and d < 0)):
    print(b*c)
elif((b > 0 and c > 0):
    print(b*d)
elif(a*c > a*d):
    print(a*c)
elif(a*c < a*d):
    print(a*d)







a,b,c,d = map(int,input().split())

if(a>= 0 and c>= 0):
    print(b*d)
elif(b<=0 and d<=0):
    print(a*c)
elif(a>=0 and d<=0):
    print(a*d)
elif(b<=0 and c>=0):
    print(b*c)
elif(a*c >= b*d):
    print(a*c)
elif(a*c < b*d):
    print(b*d)







Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=[int(input()) for i in range(4)]
x=[a*b,a*c,b*d,b*c]
print(max(x))

a,b,c,d=list(map(int,input().split()))
x=[a*c,a*d,b*c,b*d]
print(max(x))

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(input())
print max(a*c,a*d,b*c,b*d)

a,b,c,d = map(int, input().split())
print(max([a*c,a*d,b*c,b*d]))



Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=int(input().split())
print(max(a*c,a*d,b*c,b*d)

a,b,c,d=map(int,input().split())
print(max(a*c,a*d,b*c,b*d))


Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(int,input().split())
ans = a*c
if(a*d > ans):
	ans = a*d
elif(b*c > ans):
	ans = b*c
elif(b*d > ans):
	ans = b*c

a,b,c,d = map(int,input().split())
print(max(a*c,a*d,b*c,b*d))

Verdicts: Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
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())

import numpy as np
if __name__ == "__main__":
    a, b, c, d=(int(x) for x in input().split())
    arr = np.array([a*c, a*d, b*c, b*d])
    print(arr.max())

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a=[int(x) for x in input().split()]
print(a)
b=[a[0]*a[2],a[0]*a[3],a[1]*a[2],a[1]*a[3]]
print(max(b))

a=[int(x) for x in input().split()]
#(a)
#b=[a[0]*a[2],a[0]*a[3],a[1]*a[2],a[1]*a[3]]
print(max(a[0]*a[2],a[0]*a[3],a[1]*a[2],a[1]*a[3]))

Verdicts: Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
import sys

args = sys.argv
a = args[1]
b = args[2]
c = args[3]
d = args[4]

aa = int(a)*int(c)
bb = int(a)*int(d)
cc = int(b)*int(c)
dd = int(b)*int(d)

li = [aa,bb,cc,dd]

print(max(li))

import sys

args = sys.argv
a = args[1]
b = args[2]
c = args[3]
d = args[4]

aa = int(a)*int(c)
bb = int(a)*int(d)
cc = int(b)*int(c)
dd = int(b)*int(d)

li = [aa,bb,cc,dd]

print(max(li))

a,b,c,d = input().split()

aa = int(a)*int(c)
bb = int(a)*int(d)
cc = int(b)*int(c)
dd = int(b)*int(d)

li = [aa,bb,cc,dd]

print(max(li))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
-1000000000 0 -1000000000 0

a,b,c,d=map(int,input().split())
print(max(a*c,a*d,b*c,b*d))

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
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)


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)


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)

a, b, c, d = map(int, input().split())

ans = -(10**18)
ans = max(a*c, ans)
ans = max(a*d, ans)
ans = max(b*c, ans)
ans = max(b*d, ans)
print(ans)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = int(input().split())
ans_list= []
ans_list.append(a*c)
ans_list.append(a*d)
ans_list.append(b*c)
ans_list.append(b*d)
print max(ans_list)


a,b,c,d = input().split()
ans_list= []
ans_list.append(int(a)*int(c))
ans_list.append(int(a)*int(d))
ans_list.append(int(b)*int(c))
ans_list.append(int(b)*int(d))
print(max(ans_list))


Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(int,input().split())
e = a*c
f = a*d
g = b*c
h = b*d
xy =[e,f,g,h]
max(xy)

a,b,c,d = map(int,input().split())
e = a*c
f = a*d
g = b*c
h = b*d
xy =[e,f,g,h]
print(int(max(xy)))

Verdicts: Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a, b, c, d = map(int, input().split())
    print(max([a*c, a*d, b*c, b*d]))

a, b, c, d = map(int, input().split())
print(max([a*c, a*d, b*c, b*d]))

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=map(int, input())
print(max(a*c, a*d, b*c, b*d)

a,b,c,d = map(int, input().split())
print(max(a*c, a*d, b*c, b*d))

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
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 max(a, b) > 0 and max(c, d) > 0:
    A = max(abs(a), abas(b))
    B = max(abs(c), abs(d))
else:
    A = min(abs(a), abs(b))
    B = min(abs(c), abs(d))

print(A * B)

a, b, c, d = map(int, input().split())

A = a * c
B = a * d
C = b * c
D = b * d

ANS = max(A, B, C, D)

print(ANS)

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a, b, c, d = map(int, input().split())
ans1 = a*c
ans2 = a*d
ans3 = b*c
ans4 = b*d
max(ans1, ans2, ans3, ans4)

a, b, c, d = map(int, input().split())
ans1 = a*c
ans2 = a*d
ans3 = b*c
ans4 = b*d
print(max(ans1, ans2, ans3, ans4))

Verdicts: Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d= map(int,imput().split())
if b>=0 and d>=0:
    print(b*d)
elif b>=0 and d<0 and a>=0:
    print(a*d)
elif b>=0 and d<0 and a<0:
    print(a*c)
elif b<0 and d>=0 and c>=0:
    print(b*c)
elif b<0 and d>=0 and c<0:
    print(a*c)
else:
    print(a*c)

a,b,c,d= map(int,input().split())
A=max(a*c,a*d,b*c,b*d)
print(A)

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=list(map(int,input().split()))
if a>=0 and c>=0:
    one=b
    two=d

elif a<0 and c<0:
    one=a
    two=c

elif a>=0 and c<0:
    one=a
    two=d
else:
    one=b
    two=c



a,b,c,d=list(map(int,input().split()))

if b>0 and d>0:
    print(100)
    one=b
    two=c
elif b>=0 and d>=0:
    print(200)
    one=a
    two=c
else:
    if b>0:
        print(300)
        one=a
        two=d
    else:
        print(400)
        one=b
        two=c

print(one*two)

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)

a,b,c,d=list(map(int, input().split()))

one=[a,b]
two=[c,d]
aha=a*c
ihi=a*d
uhu=b*c
ehe=b*d
print(max([aha,ihi,uhu,ehe]))


Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
ans=max(max(a*c,a*d),max(b*c,b*d))
print(ans)

ans=max(a*c,a*d,b*c,b*d)
print(ans)

a,b,c,d=map(int,input().split())
ans=max(a*c,a*d,b*c,b*d)
print(ans)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = list(map(int,input().split()))
if (a<=0 and 0<=b) or (c<=0 and 0<= d):
    ls = [0]
else:
    ls = []

print(ls)
ls.append(a*c)
ls.append(a*d)
ls.append(b*c)
ls.append(b*d)

ans = max(ls)
print(ans)

a,b,c,d = list(map(int,input().split()))
if (a<=0 and 0<=b) or (c<=0 and 0<= d):
    ls = [0]
else:
    ls = []

ls.append(a*c)
ls.append(a*d)
ls.append(b*c)
ls.append(b*d)

ans = max(ls)
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(int, input().split())
i = 0
for x in range(a, b+1):
  for y in range(c, c+1):
    x * y = z
    if z >= i:
      i = z
print(i)
    


a, b, c, d = map(int, input().split())
ans = a * c
if a * d > ans:
    ans = a * d
if b * c > ans:
    ans = b * c
if b * d > ans:
    ans = b * d
print(ans)

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
ans=-10**18
if a<=0<=b or c<=0<=d:
  ans=0
ans=max(ans,a*c,a*d,b*c,b*d)
print(ans)

ans=-10**18
a,b,c,d=map(int,input().split())
if a<=0<=b or c<=0<=d:
  ans=0
ans=max(ans,a*c,a*d,b*c,b*d)
print(ans)

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a, b, c, d = map(int, input().split())
ans = -float('inf')
for x in range(a, b):
  for y in range(c, d):
    xy = x*y
    ans = max(ans, xy)
print(ans)

a, b, c, d = map(int, input().split())
print(max(a*c, a*d, b*c, b*d))

Verdicts: Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
-1000000000 0 -1000000000 0

a,b,c,d = list(map(int,input().split()))

print(max(a*c,a*d,b*c,d*b))

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(int, input().split())
print(max([a*c, a*d, b*c, b*d])

a,b,c,d = map(int, input().split())
print(max([a*c, a*d, b*c, b*d]))

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(int, input().split())


if(b*d>a*c and b*d>b*c and b*d>a*d):
    print(b*d)
elif(a*c>b*d and a*c>a*d and a*c>b*c):
    print(a*c)
elif(a*d>a*c and a*d>b*c and a*d>b*d):
    print(a*d)
elif(b*c>a*c and b*c>b*d and b*c>a*d):
    print(b*c)

a,b,c,d = map(int, input().split())


if(b*d>=a*c and b*d>=b*c and b*d>=a*d):
    print(b*d)
elif(a*c>=b*d and a*c>=a*d and a*c>=b*c):
    print(a*c)
elif(a*d>=a*c and a*d>=b*c and a*d>=b*d):
    print(a*d)
elif(b*c>=a*c and b*c>=b*d and b*c>=a*d):
    print(b*c)

Verdicts: Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
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))

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))

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))


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))
        

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))

lst = list(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))


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a, b, c, d = [int(x) for x input().split(" ")]
print(max(a*c a*d, b*c, b*d))


a, b, c, d = [int(x) for x in input().split(" ")]
print(max(a*c a*d, b*c, b*d))

a, b, c, d = [int(x) for x in input().split(" ")]
print(max([a*c a*d, b*c, b*d]))

a, b, c, d = [int(x) for x in input().split(" ")]
print(max([a*c, a*d, b*c, b*d]))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = int(input())

l = list[]
l.append(a*c)
l.append(b*c)
l.append(a*d)
l.append(b*d)

print(max(l))

a,b,c,d = map(int,input().split())
 
l = []
l.append(a*c)
l.append(b*c)
l.append(a*d)
l.append(b*d)
 
print(max(l))

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(int,input().split())
ans = -float("INF")

x = for x in (a,b):
  for y in (c,d):
    ans = max(ans,X*y)
print(ans)

a,b,c,d = map(int,input().split())
ans = -float("INF")

for x in (a,b):
  for y in (c,d):
    ans = max(ans, x*y)
    
print(ans)

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
import java.util.*;
import java.io.*;
import java.lang.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int d = sc.nextInt();

        System.out.println( Math.max( (Math.max(a*c,a*d)),(Math.max(b*c,b*d)) ) );



    }
}


a, b, c, d = list(map(int, input().split()))
print(max((a*c),(a*d),(b*c),(b*d)))


Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=map(int,input().split())
ans=max((a*c),(a*d),(b*c),(b*d))
print(max)

a,b,c,d=map(int,input().split())
ans=max((a*c),(a*d),(b*c),(b*d))
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a, b, c, d = input().split()

a=int(a)
b=int(b)
c=int(c)
d=int(d)


print(a, b, c, d)

X1 = min(a,b) * min(c,d)
X2 = min(a,b) * max(c,d)
X3 = max(a,b) * min(c,d)
X4 = max(a,b) * max(c,d)

print(max(X1,X2,X3,X4))


a, b, c, d = input().split()

a=int(a)
b=int(b)
c=int(c)
d=int(d)

X1 = min(a,b) * min(c,d)
X2 = min(a,b) * max(c,d)
X3 = max(a,b) * min(c,d)
X4 = max(a,b) * max(c,d)

print(max(X1,X2,X3,X4))


Verdicts: Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
if a>0:
  if b*d>a*c
    print(b*d)
  else:
    print(a*c)
else:
  if a*c>b*d:
    print(a*c)
  else:
    print(b*d)

a,b,c,d=input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
if a>0:
  if d>0:
    print(b*d)
  else:
    print(a*d)
else:
  if b>0:
    if d>0:
      if b*d>a*c:
        print(b*d)
      else:
        print(a*c)
    else:
      print(a*c)
  else:
    if c>0:
      print(b*c)
    else:
      print(a*c)

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a = int(input())
b = int(input())
c = int(input())
d = int(input())

num_listx = []
num_listy = []

for num in range(a,b + 1):
  if num >= a:
    num_listx.append(num)
for nums in range(c,d + 1):
  if nums >= c:
    num_listy.append(nums)
find_max = []
for i in range(len(num_listx)):
  find_max.append(num_listx[i] * num_listy[i])
print(max(find_max))


a = int(input())
b = int(input())
c = int(input())
d = int(input())

num_listx = []
num_listy = []

for num in range(b + 1):
  if num >= a:
    num_listx.append(num)
for nums in range(d + 1):
  if nums >= c:
    num_listy.append(nums)
x = max(num_listx)
y = max(num_listy)
print(x*y)


a = int(input())
b = int(input())
c = int(input())
d = int(input())

num_listx = []
num_listy = []

for num in range(b):
  if num >= a:
    num_listx.append(num)
for nums in range(d):
  if nums >= c:
    num_listy.append(nums)
x = max(num_listx)
y = max(num_listy)
print(x*y)

a = int(input())
b = int(input())
c = int(input())
d = int(input())

num_listx = []
num_listy = []

for num in range(b):
  if num >= a:
    num_listx.append(num)
for nums in range(d):
  if nums >= c:
    num_listy.append(nums)
find_max = []
for i in range(len(num_listx)):
  find_max.append(num_listx[i] * num_listy[i])
print(max(find_max))

a = int(input())
b = int(input())
c = int(input())
d = int(input())

num_listx = []
num_listy = []

for num in range(b):
  if num >= a and <= b:
    num_listx.append(num)
for nums in range(d):
  if nums >= c and <= d:
    num_listy.append(nums)
    
print(max(num_listx) * max(num_listy))

a = int(input())
b = int(input())
c = int(input())
d = int(input())

num_listx = []
num_listy = []

for num in range(b):
  if num >= a and <= b:
    num_listx.append(num)
for nums in range(d):
  if nums >= c and <= d:
    num_listy.append(nums)
x = max(num_listx)
y = max(num_listy)
print(x*y)

a = int(input())
b = int(input())
c = int(input())
d = int(input())

num_listx = []
num_listy = []

for num in range(b):
  if num >= a:
    num_listx.append(num)
for nums in range(d):
  if nums >= c:
    num_listy.append(nums)
    
print(max(num_listx) * max(num_listy))


a = int(input())
b = int(input())
c = int(input())
d = int(input())

num_listx = []
num_listy = []

for num in range(a,b + 1):
  if num >= a:
    num_listx.append(num)
for nums in range(c,d + 1):
  if nums >= c:
    num_listy.append(nums)
x = max(num_listx)
y = max(num_listy)
print(x*y)

a,b,c,d = map(int,input().split())

ans = max(a*c,a*d,b*c,b*d)

print(ans)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c d = map(int,input().split())

print(max(a*c,b*d,b*c,a*d,0))

a,b,c d = map(int,input().split())

print(max(a*c,b*d,b*c,a*d))

a,b,c ,d = map(int,input().split())
     
print(max(a*c,b*d,b*c,a*d))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(int, input().split())
l = [i*j for i, j in zip(range(a,b+1), range(c,d+1))]
print(max(l))

a,b,c,d = map(int, input().split())
l = [a*c, a*d, b*c, b*d]
print(max[l])

a,b,c,d = map(int, input().split())
l = [a*c, a*d, b*c, b*d]
print(max(l))

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=int(input().split())
a=int(a)
b=int(b)
c=int(c)
d=int(d)
list1=[]
list1.append(a*c)
list1.append(a*d)
list1.append(b*c)
list1.append(b*c)
list1.sort()
print(list1[3])

a,b,c,d=int(input())
list1=[]
list1.append(a*c)
list1.append(a*d)
list1.append(b*c)
list1.append(b*c)
list1.sort()
print(list1[3])

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])

a,b,c,d=input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
list1=[]
list1.append(a*c)
list1.append(a*d)
list1.append(b*c)
list1.append(b*d)
list1.sort()
print(list1[3])

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=map(int, input(),split())

x=a if abs(a)>abs(b) else b
y=c if abs(c)>abs(d) else d

if ( (x>0 and y>0) or (x<0 and y<0) ):
  print (x*y)
else :
  x=a if abs(a)<abs(b) else b
  y=c if abs(c)<abs(d) else d
  print (x*y)

nums=list(map(int, input().split()))
ans=[]
for i in range(2):
  ans.append(nums[i]*nums[2])
  ans.append(nums[i]*nums[3])
print max(ans)



nums=list(map(int, input().split()))
ans=[]
for i in range(2):
  ans.append(nums[i]*nums[2])
  ans.append(nums[i]*nums[3])
print (max(ans))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d,=map(int,input().split())
x=a*c
y=a*d
z=b*c
w=b*d
if(w<x and z<x and y<x):
  print(x)
elif(w<y and z<y and x<y):
  print(y)
elif(w<z and x<z and y<z):
  print(z)
elif(y<w and z<w and x<w):
  print(w)

a,b,c,d,=map(int,input().split())
x=a*c
y=a*d
z=b*c
w=b*d
s=b*d
if(w<x and z<x and y<x):
  print(x)
elif(w<y and z<y and x<y):
  print(y)
elif(w<z and x<z and y<z):
  print(z)
elif(y<w and z<w and x<w):
  print(w)
else:
  print(s)


Verdicts: Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
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)
  

a,b,c,d=map(int,input().split())

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)
  


Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
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)


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)

a,b,c,d = map(int, input().split())
list = [a*c, a*d, b*c, b*d]
print(max(list))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(int,input().split())
print(max(a*c,a*d,b*c,b*d)

a,b,c,d = map(int,input())
print(max(a*c,a*d,b*c,b*d))


a,b,c,d = map(int,input().split())
print(max(a*c,a*d,b*c,b*d))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a, b, c, d = [int(e) for e in input().split(" ")]
print(a, b, c, d)
if(0 <= a or 0 <= c):
    print("A")
    print(b * d)
elif((a < 0 and b < 0) and (0 <= c and 0 <= d)):
    print("B")
    print(b * c)
elif((c < 0 and d < 0) and (0 <= a and 0 <= b)):
    print("C")
    print(d * a)
elif(a < 0 and b < 0 and c < 0 and d < 0):
    print("D")
    print(a * d)
elif((a < 0 and 0 <= b) and (c < 0 and 0 <= d)):
    print(max((a * c), (b * d)))

a, b, c, d = [int(e) for e in input().split(" ")]
print(a, b, c, d)
if(0 <= a or 0 <= c):
    #print("A")
    print(b * d)
elif((a < 0 and b < 0) and (0 <= c and 0 <= d)):
    #print("B")
    print(b * c)
elif((c < 0 and d < 0) and (0 <= a and 0 <= b)):
    #print("C")
    print(d * a)
elif(a < 0 and b < 0 and c < 0 and d < 0):
    #print("D")
    print(a * d)
elif((a < 0 and 0 <= b) and (c < 0 and 0 <= d)):
    print(max((a * c), (b * d)))

a, b, c, d = [int(e) for e in input().split(" ")]
print(max((a*c), (a*d), (b*c), (b*d)))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
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)


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)

a,b,c,d=map(int,input().split())
l=[a*c, a*d, b*c, b*d]
print(max(l))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
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:
                xy = a * c
    elif b > 0:
        if a >= 0:
            if d <= 0:
                xy = a * d
            elif d > 0:
                xy = b * d
        elif a < 0:
            if d <= 0:
                xy = a * c
            elif d > 0:
                if c >= 0:
                    xy = b * d
                elif c < 0:
                    if abs(a * c) > abs(b * d):
                        xy = a * c
                    else:
                        xy = b * d

    print(xy)


if __name__ == "__main__":

    a,b,c,d = (int(x) for x in input().split())

    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:
                xy = a * c
    elif b > 0:
        if a >= 0:
            if d <= 0:
                xy = a * d
            elif d > 0:
                xy = b * d
        elif a < 0:
            if d <= 0:
                xy = a * c
            elif d > 0:
                if c >= 0:
                    xy = b * d
                elif c < 0:
                    if abs(a * c) > abs(b * d):
                        xy = a * c
                    else:
                        xy = b * d

    print(xy)



Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
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))

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)

a, b, c, d = map(int, input().split())
for i in range(a, b + 1):
    for j in range(c, d + 1):
        print(max(i * j))

a, b, c, d = map(int, input().split())
e = []
for i in [a, b]:
    for j in [c, d]:
        e += [i * j]

print(max(e))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=map(int,input().split())
max(a*c,a*d,b*c,b*d)

a,b,c,d=map(int,input().split())
print(max(a*c,a*d,b*c,b*d))

Verdicts: Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=input().split( )
line[n]
x=int(b)
y=int(d)
print(x*y)

n=input()
line[n]
x=int(line[1])
y=int(line[3])
print(x*y)

a,b,c,d=map(int,input().split( ))
print(max(a*d,b*c,a*c,b*d))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
print(lambda a,b,c,d=map(int, input().split()): max(max(a,b)*max(c,d), min(a,b)*min(c,d)))

print(lambda a,b,c,d=map(int, input().split()):max(a,b)*max(c,d))

a,b,c,d=map(int, input().split())
print(max([a*c, a*d, b*c, b*d]))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a = list(map(int,input().split()))
plint(a)

a = list(map(int,input().split()))
b = [0, 0, 0, 0]

b[0] = a[0]*a[2]
b[1] = a[0]*a[3]
b[2] = a[1]*a[2]
b[3] = a[1]*a[3]

b.sort()

print(b[3])

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
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)

a,b,c,d=map(int,input().split())

if b<0 and d<0:
    print(a*c)
elif a>=0 and c>=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)


Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
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)


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)


a = list(map(int,input().split()))
a_1,a_2 = [],[]
a_1.append(a[0])
a_1.append(a[1])
a_2.append(a[2])
a_2.append(a[3])

print(a_1,a_2)
max_a = -(10**30)
for i in a_1:
    for l in a_2:
        if(i*l > max_a):
            max_a = i*l

print(max_a)



a = list(map(int,input().split()))
a_1,a_2 = [],[]
a_1.append(a[0])
a_1.append(a[1])
a_2.append(a[2])
a_2.append(a[3])

#print(a_1,a_2)
max_a = -(10**30)
for i in a_1:
    for l in a_2:
        if(i*l > max_a):
            max_a = i*l

print(max_a)



Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=map(int,input().split())

ans=max(a*c,b*d)
if ((0<=b and 0>=a) or (0<=d and 0>=b)):
  print(max(0,ans))

a,b,c,d=map(int,input().split())
 
ans=max(a*c,b*d,a*d,b*c)
if ((a*b<=0) or (c*d<=0)):
  print(max(0,ans))
else:
  print(ans)

Verdicts: Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
from math import inf
a,b,c,d = map(int, input().split())
if b < a:
  b, a = a, b
if d < c:
  c, d = d, c
high = -inf
for i in range(b, a):
  for j in range(d, c):
    prod = i*j
    if high < prod:
      high = prod
print(high)

a,b,c,d = map(int, input().split())
print(max(a*d, a*c, b*c, b*d))

Verdicts: Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=map(int,input().split())
print(max([a*c,a*d,b*c,c*d])


a=list(map(int,input().split()))
print(max([a[0]*a[2],a[0]*a[3],a[1]*a[2],a[1]*a[3]]))


Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=map(int,input().spit())
p=a*c
q=a*d
r=b*c
s=b*d
print(max(p,q,r,s))


a,b,c,d=map(int,input().split())
p=a*c
q=a*d
r=b*c
s=b*d
print(max(p,q,r,s))


Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
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)

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)

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=map(int,input().split())
ans=max[(b*d),(a*c),(a*d),(b*c)]
print(ans)

a,b,c,d=map(int,input().split())
ans=max([(b*d),(a*c),(a*d),(b*c)])
print(ans)

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=map(int,input().split())

print(max(a*c,a*d,b*c

a,b,c,d=map(int,input().split())

print(max(a*c,a*d,b*c,b*d))

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a1 = a * c
a2 = a * d
a3 = b * c
a4 = b * d

list = [a1,a2,a3,a4]
print(max(list))

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))

A,B,C,D = map(int, input().split())

a1 = A * C
a2 = A * D
a3 = B * C
a4 = B * D

list = (a1,a2,a3,a4)

print(max(list))


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=map(int,input().split())
print(max[a*c,a*d,b*c,b*c])

a,b,c,d=map(int,input().split())
ans=max[a*c,a*d,b*c,b*d]
print(ans)

a,b,c,d=map(int,input().split())


a,b,c,d=map(int,input().split())
print(max([a*c,a*d,b*c,b*d]))

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(int,input().split())
max = a*c

if max > bd:
  print(max)
else:
  print(bd)


a,b,c,d = map(int,input().split())
val = [None]*4
val = [a*c,a*d,b*c,b*d]

top = a*c

for i in range(1,4):
    if top < val[i]:
        top = val[i]

print(top)

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
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(ans)

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(ans)

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a, b, c, d = [int(t) for t in input(t)]
print(max([b*d, a*c, a*d, b*d]))

a, b, c, d = [int(t) for t in input()]
print(max([b*d, a*c, a*d, b*d]))

a, b, c, d = [int(t) for t in input().split()]
print(max([b*d, a*c, a*d, b*c]))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
import math
a, b, c, d = map(int, input().split())
ac = a * c
ad = a * d
bc = b * c
bd = b * d
ans_1 = math.max(ac,ad)
ans_2 = math.max(bc, bd)
ans = math.max(ans1_, ans2)
print(ans)

a, b, c, d = map(int, input().split())
ac = a * c
ad = a * d
bc = b * c
bd = b * d
ans_1 = max(ac,ad)
ans_2 = max(bc, bd)
ans = max(ans_1, ans_2)
print(ans)



Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a = int(input())
b = int(input())
c = int(input())
d = int(input())
sum = []
sum.append(a*c)
sum.append(a*d)
sum.append(b*c)
sum.append(b*d)
print(max(sum))

a = input()
arr = [int(i)  for i in a.split()]

sum = []
sum.append(arr[0]*arr[2])
sum.append(arr[0]*arr[3])
sum.append(arr[1]*arr[2])
sum.append(arr[1]*arr[3])
print(max(sum))

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(int,input())
print(max(a*c,a*d,b*c,b*d))

a,b,c,d = map(int,input().split())
print(max(a*c,a*d,b*c,b*d))

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=map(int,(input().split())
x,y=0,0
if a>b:
    x=a
else:
    x=b
if c>d:
    y=c
else:
    y=d
print(x*y)

a,b,c,d=map(int,input().split())
'''
if a>b:
  x=a
else:
  x=b
if c>d:
  y=c
else:
  y=d
print(x*y)
'''
print(max(a*c,a*d,b*c,b*d))


Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d=map(int,input().split())
ans = -10**9
for i in range([a,b]):
  for j in range([c,d]):
    ans = max(ans, i*j)

print(ans)


a,b,c,d=map(int,input().split())
ans = a*c
for i in [a,b]:
  for j in [c,d]:
    ans = max(ans, i*j)

print(ans)


Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(int,input.split())
print(max([a *c, a*d, b* c, b* d]))

a,b,c,d = map(int,input().split())
print(max([a *c, a*d, b* c, b* d]))

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a = list(map(int,input().split()))
max = -10 ** 11
for i in range(2):
  for j in range(2,4):
    p = a[i] * a[j]
    #print(p)
    if abs(max) < abs(p) and 0 < p:
      max = p
    elif abs(p) < abs(max) and 0 > p:
      max = p
print(max)

a = list(map(int,input().split()))
max = -10 ** 25
for i in range(2):
  for j in range(2,4):
    p = a[i] * a[j]
    if max < p:
      max = p
print(max)

Verdicts: Wrong Answer

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(raw_input().split())
m = a*c
n = a*d
o = b*c
p = b*d
if(m>n and m>o and m>p):
    print(m)
elif (n>m and n>o and n>p):
    print(n)
elif (o> m and o>n and o>p):
    print(o)
else:
    print(p)

a,b,c,d = map(int, raw_input().split())
m = a*c
n = a*d
o = b*c
p = b*d
if(m>n and m>o and m>p):
    print(m)
elif (n>m and n>o and n>p):
    print(n)
elif (o> m and o>n and o>p):
    print(o)
else:
    print(p)


a,b,c,d = map(int, raw_input().split())
m = a*c
n = a*d
o = b*c
p = b*d
if(m>n and m>o and m>p):
    print(m)
elif (n>m and n>o and n>p):
    print(n)
elif (o> m and o>n and o>p):
    print(o)
else:
    print(p)


a,b,c,d = map(int, raw_input().split())
print(max(a*c,a*d,b*c,b*d))

a,b,c,d = map(int, raw_input().split())
m = a*c
n = a*d
o = b*c
p = b*d
if(m>n and m>o and m>p):
    print(m)
elif (n>m and n>o and n>p):
    print(n)
elif (o> m and o>n and o>p):
    print(o)
else:
    print(p)


a,b,c,d = map(int, input().split())
m = a*c
n = a*d
o = b*c
p = b*d
if(m>n and m>o and m>p):
    print(m)
elif (n>m and n>o and n>p):
    print(n)
elif (o> m and o>n and o>p):
    print(o)
else:
    print(p)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
N=int(input())

X=[]
Y=[]
for _ in range(N):
    x, y = map(int, input().split())
    X.append(x)
    Y.append(y)
A="NO"
for n in range(N-2):
    if X[n]==Y[n] and X[n+1]==Y[n+1] and X[n+2]==Y[n+2]:
        A="YES"
        break
print(A)

a,b,c,d = map(int, input().split())

lstx=[a,b]
lsty=[c,d]
result=[]
for i in lstx:
    for n in lsty:
        result.append(i*n)
print(max(result))

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = int(input().split())

print(max(a*c, a*d, b*c, b*d))

a,b,c,d = map(int,input().split())

print(max(a*c, a*d, b*c, b*d))

Verdicts: Runtime Error

Accepted
Problem: Given are integers a,b,c and d. If x and y are integers and a \leq x \leq b and c\leq y \leq d hold, what is the maximum possible value of x \times y?

Submission attempts (in order):
a,b,c,d = map(int, input())
print(max(a*c,a*d,b*c,b*d))

a,b,c,d = map(int, input().split())
print(max(a*c,a*d,b*c,b*d))


Verdicts: Runtime Error

Accepted