Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def checkio(number):
- def pig(min):
- if min == 1:
- return 1
- return min + pig(min - 1)
- lm = 0
- i = 0
- while i < number:
- lm += 1
- i += pig(lm)
- print(i)
- x = lm - 1
- return x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement