Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution in Clear category for Feed Pigeons by mindaugas.dadurkevicius
def checkio(number):
pig, i = 1, 1
while number > 0:
ans = max(pig-i, number)
number -= pig
i += 1
pig += i
return ans
Sept. 11, 2018