Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
min-max solution in Clear category for Funny Addition by Lemmi
def checkio(data):
a, b = data
return min(a, b)*2 + (max(a, b) - min(a, b))
if __name__ == '__main__':
assert checkio([5, 5]) == 10, 'First'
assert checkio([7, 1]) == 8, 'Second'
print('All ok')
July 26, 2017
Comments: