fork download
  1. def f(x):
  2. if x >= 5:
  3. if x <= 9:
  4. return True
  5. else:
  6. for i in range(5,10):
  7. if f(x - i):
  8. return True
  9. return False
  10. else:
  11. return False
  12. print(f(11))
Success #stdin #stdout 0.02s 9056KB
stdin
Standard input is empty
stdout
True