We are trying to create a subtraction equation between two digits using 2, 4, 5, and 8 all at once. Find the result when the difference is largest.
[OP_LIST_SOL] 2 4 5 8 [OP_LIST_EOL] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_SUB] 10 [OP_MUL] 2 [OP_LIST_MAX] 2 [OP_LIST_MIN] [OP_SUB] [OP_ADD]
var_a = 2
var_b = 4
var_c = 5
var_d = 8
list_a= []
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_e = 1
list_b=list_a.copy()
list_b.sort()
var_f = list_b[-var_e]
var_g = 1
list_c=list_a.copy()
list_c.sort()
var_h = list_c[var_g-1]
var_i = var_f - var_h
var_j = 10
var_k = var_i * var_j
var_l = 2
list_d=list_a.copy()
list_d.sort()
var_m = list_d[-var_l]
var_n = 2
list_e=list_a.copy()
list_e.sort()
var_o = list_e[var_n-1]
var_p = var_m - var_o
var_q = var_k + var_p
print(int(var_q))