Problem: You have decided to give an allowance to your child depending on the outcome of the game that he will play now.  The game is played as follows:    * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it.   * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.)   * Then, the amount of the allowance will be equal to the resulting value of the formula.  Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance.

Submission attempts (in order):
line = input().rstrip().split(' ')

fst_point = int(line[0]) * 10 + int(line[1])
sec_point = int(line[1]) * 10 + int(line[2])

if fst_point > sec_point:
    return print(fst_point + int(line[2]))
else:
    return print(sec_point + int(line[0]))
  

line = input().rstrip().split(' ')

fst_point = int(line[0]) * 10 + int(line[1])
sec_point = int(line[1]) * 10 + int(line[2])

if fst_point >= sec_point:
    return print(fst_point + int(line[2]))
else:
    return print(sec_point + int(line[0]))
  

x, y, z = map(int,input().split())

max_lines = [[int(x + y), int(z)],
			 [int(x + z), int(y)],
             [int(y + x), int(z)],
             [int(y + z), int(x)],
             [int(z + x), int(y)],
             [int(z + y), int(x)]]

max_point = 0
one_point = 0
for max_line in max_lines:
    if max_line[0] >= max_point:
    	max_point = max_line[0]
        one_point = max_line[1]

print(max_point + one_point)

line = input().rstrip().split(' ')

max_lines = [[int(line[0] + line[1]), int(line[0])],
			 [int(line[0] + line[2]), int(line[1])],
             [int(line[1] + line[0]), int(line[2])],
             [int(line[1] + line[2]), int(line[0])],
             [int(line[2] + line[0]), int(line[1])],
             [int(line[2] + line[1]), int(line[0])]]

max_point = 0
one_point = 0
for max_line in max_lines:
    if max_line[0] >= max_point:
    	max_point = max_line[0]
        one_point = max_line[1]

print(max_point + one_point)

x, y, z = map(int,input().split())

max_lines = [[int(x + y), int(z)],
			 [int(x + z), int(y)],
             [int(y + x), int(z)],
             [int(y + z), int(x)],
             [int(z + x), int(y)],
             [int(z + y), int(x)]]

max_point = 0
one_point = 0
for max_line in range(max_lines):
    if max_line[0] >= max_point:
    	max_point = max_line[0]
        one_point = max_line[1]

print(max_point + one_point)

x, y, z = map(int,input().split())

max_lines = [[int(x + y), int(z)],
			 [int(x + z), int(y)],
             [int(y + x), int(z)],
             [int(y + z), int(x)],
             [int(z + x), int(y)],
             [int(z + y), int(x)]]

max_point = 0
one_point = 0
for max_line in max_lines:
    if max_line[0] >= max_point:
    	max_point = max_line[0]
        one_point = max_line[1]

print(max_point + one_point)

line = input().rstrip().split(' ')

fst_point = int(line[0]) * 10 + int(line[1])
sec_point = int(line[1]) * 10 + int(line[2])

if fst_point >= sec_point then:
    return print(fst_point + int(line[2]))
else:
    return print(sec_point + int(line[0]))
  

x, y, z = map(int,input().split())

max_lines = [[x * 10 + y, z],
                 [x * 10 + z, y],
                 [y * 10 + x, z],
                 [y * 10 + z, x],
                 [z * 10 + x, y],
                 [z * 10 + y, x]]

max_point = 0
one_point = 0
for max_line in max_lines:
    if max_line[0] >= max_point:
        max_point = max_line[0]
        one_point = max_line[1]

print(max_point + one_point)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted