Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Food for pigs v.2 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:
break
pig += i
food -= pig
return max(pig, food)
Jan. 13, 2018
Comments: