Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
TRY YOUR LUCKY solution in Clear category for Funny Addition by tdhr
# /$$$$$$$$ /$$$$$$$ /$$ /$$ /$$ /$$ /$$$$$$ /$$ /$$ /$$$$$$$
# |__ $$__/| $$__ $$| $$ /$$/ | $$ /$$//$$__ $$| $$ | $$| $$__ $$
# | $$ | $$ \ $$ \ $$ /$$/ \ $$ /$$/| $$ \ $$| $$ | $$| $$ \ $$
# | $$ | $$$$$$$/ \ $$$$/ \ $$$$/ | $$ | $$| $$ | $$| $$$$$$$/
# | $$ | $$__ $$ \ $$/ \ $$/ | $$ | $$| $$ | $$| $$__ $$
# | $$ | $$ \ $$ | $$ | $$ | $$ | $$| $$ | $$| $$ \ $$
# | $$ | $$ | $$ | $$ | $$ | $$$$$$/| $$$$$$/| $$ | $$
# |__/ |__/ |__/ |__/ |__/ \______/ \______/ |__/ |__/
#
# /$$ /$$ /$$ /$$$$$$ /$$ /$$ /$$ /$$
# | $$ | $$ | $$ /$$__ $$| $$ /$$/| $$ /$$/
# | $$ | $$ | $$| $$ \__/| $$ /$$/ \ $$ /$$/
# | $$ | $$ | $$| $$ | $$$$$/ \ $$$$/
# | $$ | $$ | $$| $$ | $$ $$ \ $$/
# | $$ | $$ | $$| $$ $$| $$\ $$ | $$
# | $$$$$$$$| $$$$$$/| $$$$$$/| $$ \ $$ | $$
# |________/ \______/ \______/ |__/ \__/ |__/
import random
def checkio(data):
a = 0
while round(a,5) != data[0]: # a maybe data[0]
if a < data[0]:
a += random.random()
else:
a -= random.random()
b = 0
while round(b,5) != data[1]: # b maybe data[1]
if b < data[1]:
b += random.random()
else:
b -= random.random()
return round(a+b,5) # Good luck!!!
Feb. 21, 2014
Comments: