Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- rocket_pr = float(input())
- num_rockets = int(input())
- num_snickers = int(input())
- snickers_pr = rocket_pr / 6
- total = rocket_pr * num_rockets + snickers_pr * num_snickers
- total *= 1.2
- sponsors = math.ceil(total * 7 / 8)
- djocovich = math.floor(total / 8)
- print(f'Price to be paid by Djokovic {djocovich}')
- print(f'Price to be paid by sponsors {sponsors}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement