Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import ceil
- print("Sisestage liini pikkus")
- liini_pikkus = int(input())
- print("Sisestage postide maksimaalkaugus")
- maksimaalkaugus = int(input())
- postide_arv = ceil(liini_pikkus / maksimaalkaugus)
- vajalike_postide_arv = max(4,postide_arv)
- print("Liini ehitamiseks on vaja vähemalt " + str(vajalike_postide_arv) + " posti.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement