Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Multiplication Table by Moff
def checkio(a, b):
n = c = 0
while c < b:
c = 1 + (c << 1)
c += b + (b ^ c)
while a:
n += c if a & 1 else b * 2
a >>= 1
return n
Aug. 4, 2015