Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Feed solution in Clear category for Feed Pigeons by Akyn_Kozlov
def checkio(number):
pigeons = 1
new = 2
while True:
number -= pigeons
if number >= pigeons+new:
pigeons += new
new += 1
else: return max(number,pigeons)
April 1, 2019