Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
REAL fun (no +, no -, nonono) solution in Creative category for Restricted Sum by coells
# PUZZLE FOR REAL
# no addition, no substraction, no fun O.o
ping = lambda a, b: ping(a ^ b, (a & b) << 1) if b else a
pong = lambda a, b: -ping(ping(~a, 1), b) if a > b else ping(ping(~b, 1), a) if a < b else 0
checkio = lambda n, a = 0, b = 0: pong(a, b) if not n else checkio(n[1:], a, ping(-n[0], b)) if n[0] < 0 else checkio(n[1:], ping(n[0], a), b)
April 1, 2014