Problem:


Score : 100 points

Problem Statement

We have two integers: A and B.

Print the largest number among A + B, A - B, and A \times B.

Constraints

All values in input are integers.

-100 \leq A,\ B \leq 100

Input

Input is given from Standard Input in the following format:

A B

Output

Print the largest number among A + B, A - B, and A \times B.

Sample Input 1

-13 3

Sample Output 1

-10

The largest number among A + B = -10, A - B = -16, and A \times B = -39 is -10.

Sample Input 2

1 -33

Sample Output 2

34

The largest number among A + B = -32, A - B = 34, and A \times B = -33 is 34.

Sample Input 3

13 3

Sample Output 3

39

The largest number among A + B = 16, A - B = 10, and A \times B = 39 is 39.



Sample input:
-13 3


Sample output:
-10

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if (A+B)>(A-B) and (A+B)>(A*B):
  print(A+B)
elif (A-B)>(A+B) and (A-B)>(A*B):
  print(A-B)
elif (A*B)>(A+B) and (A*B)>(A-B):
  print(A*B)

Submission status: Wrong Answer

Solution code:
K, X = map(int, input().split())
print(*[i for i in range(X-K+1, X+K)])

Submission status: Wrong Answer

Solution code:
A,B = map (int, input ().split ())
P = A+B
M = A-B
K = A*B
if P>M>K or P>K>M:
  print (P)
elif M>P>K or M>K>P:
  print (M)
else:
  print (K)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())

x=a+b
y=x-b
z=a*b

print(max(x,y,z))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
max(a+b,a-b,a*b)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
s = a+b
t = a-b
u = a*b

if s >= t:
    if t >= u:
        print(s)
    elif s <= u:
        print(u)
elif t >= u:
    if u >= s:
        print(t)
    elif t <= s:
        print(s)
elif u >= s:
    if s >= t:
        print(u)
    elif u <= t:
        print(t)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
s = a+b
t = a-b
u = a*b

if s >= t:
    if t >= u:
        print(s)
    elif s <= u:
        print(u)
else:
    if s >= u:
        print(t)
    elif t <= u:
        print(u)

Submission status: Wrong Answer

Solution code:
def main():
 a,b = map(int,input().split())
 print(min(a + b, a - b, a * b))
main()

Submission status: Wrong Answer

Solution code:
a,b = [int(a) for a in input().split()]
if a+b>a-b and a+b>a*b:
  print(a+b)
elif a-b>a+b and a-b>a*b:
  print(a-b)
elif a*b>a+b and a*b>a-b:
  print(a*b)

Submission status: Wrong Answer

Solution code:
a,b = [int(a) for a in input().split()]
if a+b>a-b and a+b>a*b:
  print(a+b)
elif a-b>a+b and a-b>a*b:
  print(a-b)
else:
  print(a*b)

Submission status: Wrong Answer

Solution code:
k,x=map(int, input().split())
s=[]
for i in range(x-(k-1),x+k):
    s.append(i)
print(*s)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
Sum=a+b
sub=a-b
prod=a*b
if Sum>sub and Sum>prod:
  print(Sum)
elif sub>Sum and sub>prod:
  print(sub)
elif prod>Sum and prod>sub:
  print(prod)

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
if a[0]*a[1] > a[0]-a[1] or a[0]*a[1] > a[0]+a[1]:
    print(a[0]*a[1])
elif a[0]-a[1] > a[0]+a[1]:
    print(a[0]-a[1])
else:
    print(a[0]+a[1])

Submission status: Wrong Answer

Solution code:
# 137 A

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

x = a + b
y = a - b
z = a * b

max = x
if y >= max:
    max = y
elif z >= max:
    max = z

print(max)

Submission status: Wrong Answer

Solution code:
# 137 A

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

max = a + b
if (a - b)  > max:
    max = a - b
elif (a * b) > max:
    max = a * b

print(max)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
t = a * b
h = a - b
k = a * b
l = [t, h, k]
print(max(l))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print(max(a+b,a-b,a+b))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
x=max(a+b,a-b,a*b)

Submission status: Wrong Answer

Solution code:
def f02():
    k, x=map(int, input().split())
    s=x+1-k
    print(*range(s, s+(2*k)))

f02()

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
max_ab = 0
max_ab = max(a+b,max_ab)
max_ab = max(a-b,max_ab)
max_ab = max(a*b,max_ab)
print(max_ab)

Submission status: Wrong Answer

Solution code:
K,X =map(int, input().split())
print(*list(range(X-K+1,X+K)))

Submission status: Wrong Answer

Solution code:
K,X =map(int, input().split())
print(list(range(X-K+1,X+K-1)))

Submission status: Wrong Answer

Solution code:
k, x = map(int, input().split())
print(' '.join(list(map(str, range(x - (k - 1), x + (k - 1) + 1)))))

Submission status: Wrong Answer

Solution code:
K,X= map(int,input().split())
ans =""
for i in range(X-K+1,X+K):
    ans+=str(i) + " "
print(ans)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
pl = a+b
di = a-b
mu = a*b
if pl>di and pl>mu:
    print(pl)
elif di>pl and di>mu:
    print(di)
elif mu>di and mu>pl:
    print(mu)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
pl = a+b
di = a-b
mu = a*b
if pl>di and pl>mu:
    print(pl)
elif di>pl and di>mu:
    print(di)
else:
    print(mu)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
pl = a+b
di = a-b
mu = a*b
if pl>di or pl>mu:
    print(pl)
elif di>pl or di>mu:
    print(di)
else:
    print(mu)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
x=a+b
y=a-b
z=a*b
if x>=y and x>=z:
    print(x)
if y>=x and y>=z:
    print(y)
if z>=x and z>=y:
     print(z)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
x=a+b
y=a-b
z=a*b
if x>=y and x>=z:
    print(x)
if y>=x and y>=z:
    print(y)
else:
    print(z)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

plus = A + B
minus = A - B
cross = A * B

if plus >= minus:
	if plus >= cross:
		print(plus)
	else:
		print(cross)
else:
	print(minus)

Submission status: Wrong Answer

Solution code:
A, B = (int(x) for x in input().split())
N = [A+B, A-B, A+B]
print(max(N))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
n=[a+b,a*b,a-b]
print(n)
n.sort()
print(n[-1])

Submission status: Wrong Answer

Solution code:
import sys
x = input().split()
a = float(x[0])
b = float(x[1])
la = len(x[0])
lb = len(x[1])
if x[0] == '0' and x[1] == '0':
  print(0)
  sys.exit()
if a < 0 and b > 0:
  a = int(x[0][1:la])
  b = int(b)
  p = - a + b
  m = - a - b
  k = - a * b
elif b < 0 and a > 0:
  a = int(a)
  b = int(x[1][1:lb])
  p = a - b
  m = a + b
  k = a * - b
elif a< 0 and b < 0:
  a = int(x[0][1:la])
  b = int(x[1][1:lb])
  p = - a - b
  m = - a + b
  k = a * b
else:
  a = int(x[0])
  b = int(x[1])
  p = a + b
  m = a - b
  k = a * b
if p > m and p > k:
  print(p)
elif m > p and m > k:
  print(m)
elif k > p and k > m:
  print(k)

Submission status: Wrong Answer

Solution code:
x = input().split()
a = float(x[0])
b = float(x[1])
la = len(x[0])
lb = len(x[1])
if a < 0 and b > 0:
  a = int(x[0][1:la])
  b = int(b)
  p = - a + b
  m = - a - b
  k = - a * b
elif b < 0 and a > 0:
  a = int(a)
  b = int(x[1][1:lb])
  p = a - b
  m = a + b
  k = a * - b
elif a< 0 and b < 0:
  a = int(x[0][1:la])
  b = int(x[1][1:lb])
  p = - a - b
  m = - a + b
  k = a * b
else:
  a = int(x[0])
  b = int(x[1])
  p = a + b
  m = a - b
  k = a * b
if p > m and p > k:
  print(p)
elif m > p and m > k:
  print(m)
elif k > p and k > m:
  print(k)

Submission status: Wrong Answer

Solution code:
x = input().split()
a = float(x[0])
b = float(x[1])
la = len(x[0])
lb = len(x[1])
if a < 0:
  a = int(x[0][1:la])
  b = int(b)
  p = - a + b
  m = - a - b
  k = - a * b
elif b < 0:
  a = int(a)
  b = int(x[1][1:lb])
  p = a - b
  m = a + b
  k = a * - b
elif a< 0 and b < 0:
  a = int(x[0][1:la])
  b = int(x[1][1:lb])
  p = - a - b
  m = - a + b
  k = a * b
else:
  a = int(x[0])
  b = int(x[1])
  p = a + b
  m = a - b
  k = a * b
if p > m and p > k:
  print(p)
elif m > p and m > k:
  print(m)
elif k > p and k > m:
  print(k)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())

x=a+b
y=a-b
z=a*b

if x>y and x>z:
  print(x)
elif y>x and y>z:
  print(y)
else:
  print(z)

Submission status: Wrong Answer

Solution code:
i,k=map(int,input().split())
for i in range(k-i+1,k+i):
    print(i ,end=" ")

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())

tasu = a+b
hiku = a-b
kake = a*b

if tasu <= hiku <= kake:
    print(kake)
elif tasu <= kake <= hiku:
    print(hiku)
else:
    print(tasu)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())

x=(A+B)
y=(A-B)
z=(A*B)

if(x>y and x>z):
    print(x)
elif(y>x and y>z):
    print(y)
else:
    print(z)

Submission status: Wrong Answer

Solution code:
K,X=map(int,input().split())
k=[]
for i in range ((X-K+1),(X+K),1):
    print(i,end=" ")

Submission status: Wrong Answer

Solution code:
K,X=map(int,input().split())
print(*range(X-K+1,X+K))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
A=a*b
B=a-b
C=a*b
D=[A,B,C]
print(max(D))

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))

x = a[0]+a[1]
y = a[0]-a[1]
z = a[0]*a[1]

if z > x and z > y : print(z)
if x > y and x > z : print(x)
if y > z and y > x : print(y)

Submission status: Wrong Answer

Solution code:
K, X = map(int, input().split())
for i in range(X-K+1, K+X):
    print(i, end=" ")

Submission status: Wrong Answer

Solution code:
K, X = map(int, input().split())
for i in range(X-K+1, K+X):
    print(i, sep=" ")

Submission status: Wrong Answer

Solution code:
K, X = map(int, input().split())
array = []

for i in range((K-1)*2+1):
    array.append(X-K+1+i)
    i += 1
ans = sorted(array)

print(*ans)

Submission status: Wrong Answer

Solution code:
K,X=map(int,input().split())
print(*[x for x in range(X-K+1,X+K)])

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
num = []
num.append(A+B)
num.append(A+B)
num.append(A+B)
num.sort()
print(num[2])

Submission status: Wrong Answer

Solution code:
l=input().split()
a=int(l[0])
b=int(l[1])

sum=a+b
sub=a-b
multi=a*b
if ((sum>sub)and(sum>multi)):
    print(sum)
elif((sub>sum)and(sub>multi)):
    print(sub)
else:
    print(multi)

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    a, b = map(int, input().split())

    ans = a + b

    if ans > a - b:
        ans = a - b

    if ans > a * b:
        ans = a * b

    print(ans)

Submission status: Wrong Answer

Solution code:
k,x = map(int,input().split())
p = [x-k+1+i for i in range(2*k-1)]

q = [j for j in p if j > -1000000 and j < 1000000]

print(q)

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())

x = a + b
y = a - b
z = a*b

if x != y and y != z and x != z:
    if x > y and x > z:
        print(x)
    else:
        if y > z:
            print(y)
        else:
            print(z)
else:
    pass
if x == y and y ==  z and x == z:
    print(x, y, z)
else:
    pass
if x == y and x != z:
    if x > z:
        print(x, y)
    else:
        print(z)
else:
    pass
if y == z and y != x:
    if y > x:
        print(y, z)
    else:
        print(x)
else:
    pass
if x == z and x != y:
    if x > y:
        print(x, z)
    else:
        print(y)
else:
    pass

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())

x = a + b
y = a - b
z = a*b

if x != y and y != z and x != z:
    if x > y and x > z:
        print(x)
    else:
        if y > z:
            print(y)
        else:
            print(z)
if x == y and y ==  z and x == z:
    print(x, y, z)
else:
    pass
if x == y and x != z:
    if x > z:
        print(x, y)
    else:
        print(z)
else:
    pass
if y == z and y != x:
    if y > x:
        print(y, z)
    else:
        print(x)
else:
    pass
if x == z and x != y:
    if x > y:
        print(x, z)
    else:
        print(y)
else:
    pass

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())

x = a + b
y = a - b
z = a*b

if x != y and y != z and x != z:
    if x > y and x > z:
        print(x)
    else:
        if y > z:
            print(y)
        else:
            print(z)
if x == y and y ==  z and x == z:
    print(x, y, z)
else:
    pass
if x == y and x != z:
    if x > z:
        print(x, y)
    else:
        print(z)
else:
    pass
if y == z and y != x:
    if y > x:
        print(y, z)
    else:
        print(x)
else:
    pass
if x == z and x != y:
    if x > y:
        print(x, z)
    else:
        print(z)
else:
    pass

Submission status: Wrong Answer

Solution code:
number = input().split(" ")
A = int(number[0])
B = int(number[1])
ans = []
ans.append(int(A - B))
ans.append(int(A - B))
ans.append(int(A * B))
ans.sort()
print(ans[-1])

Submission status: Wrong Answer

Solution code:
number = input().split(" ")
A = int(number[0])
B = int(number[1])
ans = []
ans.append(A - B)
ans.append(A - B)
ans.append(A * B)
ans.sort()
print(ans[-1])

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())

if a + b > a - b and a + b > a * b:
    print(a+b)
elif a-b > a+b and a-b > a*b:
    print(a-b)
elif a*b > a+b and a*b > a-b:
    print(a*b)

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())

if a + b > a - b and a + b > a * b:
    print(a+b)
elif a-b > a+b and a-b > a*b:
    print(a-b)
else:
    print(a*b)

Submission status: Wrong Answer

Solution code:
A,B=[int(x) for x in input().split(" ")]
if B<=0:
    if A+B<=A*B:
        print(A*B)
    else:
        print(A+B)
else:
    if A-B<=A*B:
        print(A*B)
    else:
        print(A-B)

Submission status: Wrong Answer

Solution code:
In = input().split()
n1 = int(In[0])
n2 = int(In[1])
sum = n1 + n2; minus = n1 -n2; mult = n1*n2
if sum > minus and sum > mult:
    print(sum)
if minus > sum and minus > mult:
    print(minus)
if mult > sum and mult > minus:
    print(mult)

Submission status: Wrong Answer

Solution code:
In = input().split()
n1 = int(In[0])
n2 = int(In[1])
sum = n1 + n2; minus = n1 -n2; mult = n1*n2
if sum > minus and sum > mult:
    print(sum)
elif minus > sum and minus > mult:
    print(minus)
else:
    print(mult)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

if A == 1 and B == 1:
    print(2)
elif A < 0 and B < 0:
    print(A*B)
elif A > 0 and B < 0:
    print(A-B)
elif A < 0 and B > 0:
    print(A+B) 
else:
    print(A*B)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

if A == 1 and B == 1:
    print(2)
elif A>0 and B>0:
    print(A*B)
elif A>=0 and B<0:
    print(A-B)
else:
    print(A+B)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a+b>a*b and a+b>a-b:
  print(a+b)
elif a*b>a+b and a*b>a-b:
  print(a*b)
elif a-b>a*b and a-b>a+b:
  print(a-b)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a+b>a-b and a+b>a*b:
    print(a+b)
elif a-b>a+b and a-b>a*b:
    print(a-b)
else:
    print(a*b)

Submission status: Wrong Answer

Solution code:
k,x = map(int,input().split())

for i in range(x-k+1,x+k):
    if i < x+k-1:
        print(i, end ="")
    else:
        print(i)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

ans1 = A+B
ans2 = A-B
ans3 = A*B

if ans1>ans2 and ans1>ans3:
    print(ans1)
elif ans2>ans1 and ans2>ans3:
    print(ans2)
elif ans3>ans2 and ans3>ans1:
    print(ans3)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

ans1 = A+B
ans2 = A-B
ans3 = A*B

if ans1>ans2 and ans2>ans3:
    print(ans1)
elif ans2>ans1 and ans1>ans3:
    print(ans2)
else:
    print(ans3)

Submission status: Wrong Answer

Solution code:
import numpy as np
list=input().split()

for i in range(2):
    if i==0:
        A=float(list[i])
    if i==1:
        B=float(list[i])

sum=A+B
sub=A-B
product=A*B

if sum>sub:
    if product>sum:
        print(int(product))
    elif product<sub:   #product<=sum
        print(int(sum))
    else:
        print(int(sub))

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

sum = a+b
sub = a-b
mul = a*b

if sum > sub and sum > mul:
    print(sum)
elif sub > sum and sub > mul:
    print(sub)
else:
    print(mul)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
l = sorted([A+B,A-B,A*B])
print(l[0])

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]

if A == 1 and B > 0:
    print(A + B)

elif A > 0 and B == 1:
    print(A + B)

elif A > 0 and B > 0:
    print(A * B)

elif A < 0 and B < 0:
    print(A * B)

elif A < 0 and B > 0:
    print(A + B)

elif A > 0 and B < 0:
    print(A - B)

else:
    print('0')

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]

if A == 1 and B > 0:
    print(A + B)

elif A > 0 and B == 1:
    print(A + B)

elif A > 0 and B > 0:
    print(A * B)

elif A < 0 and B > 0:
    print(A + B)

elif A > 0 and B < 0:
    print(A - B)

else:
    print('0')

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]

if A == 1 and B == 1:
    print('1')

elif A > 0 and B > 0:
    print(A * B)

elif A < 0 and B > 0:
    print(A + B)

elif A > 0 and B < 0:
    print(A - B)

else:
    print('0')

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
plus = A + B
minus = A - B
mult = A * B
ans = max(plus, minus, mult)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

a = A+B
b = A-B
c = A*B

if a >= b and a >= c:
    print(a)
if b >= a and b >= c:
    print(b)
if c >= a and c >= b:
    print(c)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

x = A+B
y =A-B
z =A*B

if x > y:
  if x>z:
    ans = x
  else:
    ans = z
else:
  ans = y

print(ans)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
print(max(A+B,A-B,A+B))

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
c = a + b
d = a - b
e = a * b
if c>d>e:
    print(c)
elif c>e>d:
    print(c)
elif d>c>e:
    print(d)
elif d>e>c:
    print(d)
else:
    print(e)

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())

wa = a+b
sa = a-b
seki = a*b

if wa>sa and wa>seki:
    print(wa)
elif sa>wa and sa>seki:
    print(sa)
else:
    print(seki)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
wa = a + b
sa = a - b
seki = a * b
if wa > sa and wa > seki:
    print(wa)
if sa > wa and sa > seki:
    print(sa)
if seki > wa and seki > sa:
    print(seki)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
wa = a + b
sa = a - b
seki = a * b
if wa > sa and wa > seki:
    print(wa)
elif sa > wa and sa > seki:
    print(sa)
else:
    print(seki)

Submission status: Wrong Answer

Solution code:
K,X = map(int,input().split())
 
for i in range(X-K+1,X+K):
    print(i)

Submission status: Wrong Answer

Solution code:
l=list(map(int,input().split()))

if l[0]+l[1]>=l[0]-l[1] and l[0]+l[1]>=l[0]*l[1]:
    print(l[0]+l[1])
if l[0]-l[1]>=l[0]+l[1] and l[0]-l[1]>=l[0]*l[1]:
    print(l[0]-l[1])
if l[0]*l[1]>=l[0]-l[1] and l[0]*l[1]>=l[0]+l[1]:
    print(l[0]*l[1])

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
l = a+b
m = a-b
n = a*b
if n > 0:
    print(n)
    exit(0)
if l >= m:
    print(l)
else:
    print(m)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
x = A+B
y = A-B
z = A*B

if(x>y>z or x>z>y):
    print(x)
elif(y>x>z or y>z>x):
    print(y)
else:
    print(z)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
x = A+B
y = A-B
z = A*B

if(x>y):
    if(x>z):
        print(x)
    else:
        print(z)
else:
    print(y)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
x = A+B
y = A-B
z = A*B

if(x>y and x>z):
    print(x)

elif(y>x and y>z):
    print(y)

elif(z>x and z>y):
    print(z)

else:
    exit()

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
x = A+B
y = A-B
z = A*B

if(x>y and x>z):
    print(x)

elif(y>x and y>z):
    print(y)

else:
    print(z)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

list = [a+b,a-b,a+b]
print(max(list))

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

if a+b > a-b:
    if a+b > a*b:
        print(a+b)
    else:
        print(a*b)
else:
    print(a-b)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
a = A+B
b = A-B
c = A*B
list = [a,b,c]
max(list)

Submission status: Wrong Answer

Solution code:
A,B = list(map(int, input().split()))
print(A,B)
x = int(A*B)
y = int(A+B)
z = int(A-B)
print(max(x,y,z))

Submission status: Wrong Answer

Solution code:
A , B =map(int,input().split())
if A+B > A-B and A+B > A*B:
	print(A+B)
elif A-B > A+B and A-B > A*B:
	print(A-B)
else:
	print(A*B)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A + B >= A*B and A+B>= A-B:
 print(A+B)
if A*B >= A+B and A*B >= A-B:
  print(A*B)
if A-B >= A*B and A-B >= A+B:print(A-B)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A + B >= A*B:
  print(A+B)
else:
  print(A*B)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
add = a+b
sub = a-b
mul = a*b

if(add > sub and add > mul):
  print(add)
elif(sub > add and sub > mul):
  print(sub)
else:
  print(mul)

Submission status: Wrong Answer

Solution code:
import numpy
A, B = map(int, input().split())

C = A+B
D = A-B
E = A*B

if C > D and C > E:
    print(C) 
elif D > C and D > E:
    print(D)
elif E > C and E > D:
    print(E)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
x_list=[A+B,A-B,A*B]
x_list.sort()
x_list[2]

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
list_plumi=[A+B,A-B,A*B]
list_plumi.sort()
list_plumi[2]

Submission status: Wrong Answer

Solution code:
A,B = [int(x) for x in input().split()]

if (A + B) > (A - B) and (A + B) > (A * B):
    print(A + B)
elif (A - B) > (A + B) and (A - B) > (A * B):
    print(A - B)
elif (A * B) > (A + B) and (A * B) > (A - B):
    print(A * B)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
list = [a+b,a-b,a*b]
print(sum(list))

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

max(a + b, max(a - b , a * b))

Submission status: Wrong Answer

Solution code:
A,B = map(int,(input().split()))


tasu = A+B
hiku = A-B
kakeru = A*B

"""
print('tashizan',tasu)
print('hiki',hiku)
print('kake',kakeru)
"""


if tasu >= hiku and tasu >= kakeru:
    print("1",tasu)
elif hiku >= tasu and hiku >= kakeru:
    print("2",hiku)
else:
    print("3",kakeru)


"""
for i in range(3):
    if tasu > hiku:
        if tasu > kakeru:
            print(tasu)
    elif hiku > tasu:
        if hiku > kakeru:
            print(hiku)
    elif kakeru > tasu:
        if kakeru > hiku:
"""

Submission status: Wrong Answer

Solution code:
A,B = map(int,(input().split()))


tasu = A+B
hiku = A-B
kakeru = A*B
"""
print(tasu)
print(hiku)
print(kakeru)
"""
if tasu > hiku and tasu > kakeru:
    print(tasu)
elif hiku > tasu and hiku > kakeru:
    print(tasu)
else:
    print(kakeru)
    


"""
ミス
for i in range(3):
    if tasu > hiku:
        if tasu > kakeru:
            print(tasu)
    elif hiku > tasu:
        if hiku > kakeru:
            print(hiku)
    elif kakeru > tasu:
        if kakeru > hiku:
"""

Submission status: Wrong Answer

Solution code:
A,B = map(int,(input().split()))


tasu = A+B
hiku = A-B
kakeru = A*B

if tasu > hiku:
    if tasu > kakeru:
        print(tasu)
elif hiku > tasu:
    if hiku > kakeru:
        print(hiku)
elif kakeru > tasu:
    if kakeru > hiku:
        print(kakeru)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split(' ')]

-100<=A
B<=100

x = A + B
y = A + B
z = A * B

print(max([x,y,z]))

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split(' ')]

-100<=A
B<=100

x = A + B
y = A + B
z = A * B

if x > y or z:
  print(x)
if y > x or z:
  print(y)
if z > x or y:
  print(z)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split(' ')]

x = A + B
y = A + B
z = A * B

if x > y or z:
  print(x)
if y > x or z:
  print(y)
if z > x or y:
  print(z)

Submission status: Wrong Answer

Solution code:
k, x = map(int, input().split())
z = []
for i in range(k):
    z.append(x-i)
for i in range(1,k):
    z.append(x+i)
print(*sorted(z))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print(a+b,a-b,a*b)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

max(A+B,A-B,A*B)

Submission status: Wrong Answer

Solution code:
a, b = (int(x) for x in input().split() )

list = [a + b, a - b, a * b]

if a > 0:
  if b > 0:
    print(list[2])
  else:
    print(list[1])

else:
  if b > 0:
    print(list[0])
  else:
    print(list[2])

Submission status: Wrong Answer

Solution code:
A,B = list(map(int,input().split()))
p = int(A + B)
m = int(A - B)
c = int(A * B)
s = [p,m,c]
max(s)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
max(A+B,A-B,A*B)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
times = a*b
add= a+b
minus=a-b

if times > minus:
	if times > add:
  		print(times)
	else:
  		print(add)
else:
  if add>minus:
    print(add)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
multiplied = a*b
add= a+b
minus=a-b

if multiplied > minus:
	if multiplied > add:
  		print(multiplied)
	else:
  		print(add)

else:
  if add>minus:
    print(add)

Submission status: Wrong Answer

Solution code:
def main():
    a, b = map(int, open(0).read().split())

    add = a + b
    sub = a - b
    mult = a * b

    ans = max(add, sub, mult)
    print(ans)
    return()

if __name__ == '__init__':
    main()

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split(' '))

if B == 0:
    divisor = -10000000
else:
    divisor = A/B

answers = [A+B, A-B, A*B, divisor]
print(max(answers))

Submission status: Wrong Answer

Solution code:
k,x=map(int,input().split())
for i in range(x-~-k,x+k):
    print(i,end=' ')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
m = a + b
m = m < a - b if m == a - b else m
m = m < a * b if m == a * b else m
print(m)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
#s=[]
for i in range(b-a+1,b+a):
    print(i,end=" ")

Submission status: Wrong Answer

Solution code:
N = input().split()
A = int(N[0])
B = int(N[1])
if A+B > A-B and A+B > A*B:
    print(A+B)
elif A-B > A+B and A-B > A*B:
    print(A-B)
elif A*B > A+B and A*B > A-B:
    print(A*B)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print(a,b)
n = a + b
m = a - b
l = a*b
print(max(n, m, l))

Submission status: Wrong Answer

Solution code:
# https://atcoder.jp/contests/abc137/tasks/abc137_b

l = [int(i) for i in input().split(' ') for l in range(1)]
for i in range((l[1] - l[0] + 1), (l[1] + l[0])):
    print(i)

Submission status: Wrong Answer

Solution code:
k,x=map(int,input().split())
list=[]
for i in range(-k,k):
  list.append(x+i)
for i in range(1,2*k):
  print(list[i])

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

X = []
X.append(A+B)
X.append(A-B)
X.append(A*B)

X.sort()

print(X[0])

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
c=a-b
d=c//2
if c%2==1:
    ans="IMPOSSIBLE"
elif c%2==0:
    if c>=0:
        ans=b+d
    elif c<0:
        ans=a-d
print(ans)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
x = a + b
y = a * b
z = a - b
if x >= b and x >= z:
    print(x)
elif y >= z:
    print(y)
else:
    print(z)

Submission status: Wrong Answer

Solution code:
A, B = map(int,input('please enter number').split())

ans_plus = A + B
ans_minus = A - B
ans_by = A * B
print (max(ans_plus,ans_minus,ans_by))

Submission status: Wrong Answer

Solution code:
A = list(map(int,input('please enter number').split()))

ans_plus = A[0] + A[1]
ans_minus = A[0] - A[1]
ans_by = A[0] * A[1]
print (max(ans_plus,ans_minus,ans_by))

Submission status: Wrong Answer

Solution code:
def getlist():
	return list(map(int, input().split()))

A, B = getlist()
print(max(A + B, A - B, A + B))

Submission status: Wrong Answer

Solution code:
K, X=map(int,input().split())
for x in range(X-K+1,X+K):
  print(x)

Submission status: Wrong Answer

Solution code:
A, B = map(int,input().split())
if A*B > 0:
    print(A*B)
elif B < 0:
    print(A-B)
elif A < 0:
    print(A+B)

Submission status: Wrong Answer

Solution code:
A, B = map(int,input().split())
if B < 0:
    print(A-B)
elif A < 0:
    print(A+B)
else:
    print(A*B)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
a=A*B
b=A-B
c=A*B
if a>=b and a>=c:
  print(a)
elif b>=a and b>=c:
  print(b)
else:
  print(c)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
a=A+B
b=A-B
c=A*B
if a>=b:
  d=a
else:
  if b>=c:
    d=b
  else:
    d=c
print(d)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
list = [a + b, a - b, a * b]
print(max([list]))

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
n_l = [a+b,a-b,a*b]
max(n_l)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
max(a+b, a-b, a*b )

Submission status: Wrong Answer

Solution code:
K, X = map(int, input().split())
for i in range(2*K -1):
  print(X - K +1 + i, end=' ')

Submission status: Wrong Answer

Solution code:
A,B =map(int,input().split())
max(A+B,A-B,A*B)

Submission status: Wrong Answer

Solution code:
a,b=map(int, input().split())
pl=a+b
mi=a-b
ka=a*b
if pl>mi and pl>ka:
    print(pl)
elif mi>pl and mi>ka:
    print(mi)
else:
    print(ka)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
print(A+B,A-B,A*B)

Submission status: Wrong Answer

Solution code:
import numpy as np
AB = list(map(int,input().split()))
AplusB = AB[0] + AB[1]
AminusB = AB[0] - AB[1]
AkakeruB = AB[0] * AB[1]
ABlst = np.zeros(3)
ABlst[0] = AplusB
ABlst[1] = AminusB
ABlst[2] = AkakeruB
ABmax = max(ABlst)
print(ABmax)

Submission status: Wrong Answer

Solution code:
AB = list(map(int,input().split()))
AplusB = AB[0] + AB[1]
if AB[0] <= AB[1]:
  AminusB = AB[1] - AB[0]
else:
  AminusB = AB[0] - AB[1]
AkakeruB = AB[0] * AB[1]

print(AplusB)
print(AminusB)
print(AkakeruB)

Submission status: Wrong Answer

Solution code:
A = list(map(int,input().split()))

print(A[0]+A[1],A[0]-A[1],A[0]*A[1])

Submission status: Wrong Answer

Solution code:
A, B = map(int,input().split())
p = A+B
n = A-B
b = A*B
if p>n:
    if p>b:
        print(p)
    else:
        print(b)
else:
    print(n)

Submission status: Wrong Answer

Solution code:
K , X = map(int, input().split())

for num in range((X-K)+1 , (X+K)):
  print(num, end= " " )

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
p = a + b
m = max(a - b, b - a)
d = a * b
print(max(p, m, d))

Submission status: Wrong Answer

Solution code:
K,X = map(int,input().split())

list = []

for i in range(X-K+1,X+K):
    list.append(i)

print(" ".join(map(str,list)))

Submission status: Wrong Answer

Solution code:
# スペース区切りの整数の入力
a,b = map(int, input().split())

c = a+b
d = a-b
e = a*b
if c > d :
  if c > e:
   print(c)
  else :
    print(e)    
elif d > e :
  print(d)