fork download
  1. import math
  2.  
  3. def time(n):
  4. """ Return the number of steps
  5. necessary to calculate
  6. `print countdown(n)`"""
  7. steps = 0
  8. ret = 0
  9. ret = n*2
  10. print "dsd"
  11. steps = steps + ret/5
  12. if ret%5 != 0:
  13. steps = steps + 4
  14. else:
  15. steps = steps + 3
  16. return steps
  17.  
  18. def countdown(x):
  19. y = 0
  20. while x > 0:
  21. x = x - 5
  22. y = y + 1
  23. print y
  24.  
  25. print countdown(1)
Success #stdin #stdout 0.01s 7180KB
stdin
Standard input is empty
stdout
1
None