Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
keep it simple ? solution in Creative category for Funny Addition by waxdesf
def checkio(data, k=lambda x: x[0]+x[1]):
a = k(data)
b = len( data[0]*'0'+'0'*data[1])
c = len(''.join([x*'0' for x in data]))
d = sum([1 for d in data for i in range(1, d+1)])
e = [x for x, y in list(zip([a,b],[c,d]))][1] * ((a+b) // 2) // c
f = int(str(data[0]).zfill(data[1])) + int(str(data[1]).zfill(data[0]))
g = (((e*f//(k([e,f])//len(data)))*(k(data)*b//c)// e)*k([a,b])//2)//d
h = sum([x-y for x,y in zip([a + x for x in data],[a-x for x in data])]) //2
i = int((1/((data[0]+data[1])*len(data) // (data[1]+data[0])))* (k([e, 0])+k([0, k(data)])))
j = [data[n] for n in range(len(data))][0] + [data[n] for n in range(len(data))][1]
return sum([a,b,c,d,e,f,g,h,i,j]) // len([a,b,c,d,e,f,g,h,i,j])
May 9, 2015
Comments: