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