Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Food for pigs solution in Clear category for Feed Pigeons by Nep
def checkio(food, pig=0):
for i in range(1, food + 1):
if pig + i >= food:
return max(pig, food)
pig += i
food -= pig
Jan. 13, 2018
Comments: