Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
min(food,pigeons) solution in Clear category for Feed Pigeons by Olpag
def checkio(food):
minute = 0
fed_pigeons = 0
pigeons = 0
while fed_pigeons < food:
minute += 1
pigeons += minute
fed_pigeons = min(food,pigeons)
food -= pigeons
return fed_pigeons
March 13, 2019
Comments: