Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Feed Pigeons by andrefilimono
def checkio(number):
minuts, pigeons, eat_pigeons, food = 0, 0, 0, number
while food:
minuts += 1
pigeons += minuts
food -= eat_pigeons
if food > 0:
new_pigeons = pigeons - eat_pigeons
while new_pigeons and food:
food -= 1
eat_pigeons += 1
new_pigeons -= 1
else:
break
return eat_pigeons
Nov. 16, 2015
Comments: