fork(1) download
  1. def trzy(kwota):
  2. ile = 0
  3. while kwota >= 5:
  4. kwota = kwota - 5
  5. ile += 1
  6. while kwota >= 3:
  7. kwota = kwota - 3
  8. ile += 1
  9. while kwota >= 1:
  10. kwota = kwota - 1
  11. ile += 1
  12. return ile
  13.  
  14. print(trzy(11))
  15. print(trzy(13))
Success #stdin #stdout 0.11s 14168KB
stdin
Standard input is empty
stdout
3
3