You've just entered a programming contest and have a chance to win a million dollars. This is the last question you have to solve, so your victory (and your vacation) depend on it. Can you guess the function just by looking at the test cases? There are two numerical inputs and one numerical output. Goodluck!

hint: go
 here

Difficulty: introductory

Starter code:

def code(x,y):
	

Solutions:
TABLE = str.maketrans('0123456789','9876543210')

def code(*args):
    return sum(map(lambda n:int(str(n).translate(TABLE)), args))

def code(x, y):
    return sum(int('9' * len(str(n))) - n for n in [x, y])


code=lambda Q,S:10**len(str(Q))+10**len(str(S))-2-Q-S

def code(x, y):
    return sum(int('9' * len(str(n))) for n in [x, y]) - x - y

def code(x,y):
    return sum(int(str(n).translate(str.maketrans('0123456789','9876543210'))) for n in [x,y])

def code(x,y):
    return (10**len(str(x)) - x) + (10**len(str(y)) - y) - 2


code=lambda a,b:10**len(str(a))-a+10**len(str(b))-b-2

def code(x,y):
    goal = pow(10,len(str(x))) + pow(10,len(str(y))) - 2
    return goal - x - y 


def code(x, y):
    list = []
    for n in [x,y]:
        list.append(int('9' * len(str(n))) - n)
    return sum(list)

def code(x,y):
    return 10**len(str(x))+10**len(str(y))+3-x-y-5