Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import ceil
- racket_price = float(input())
- racket_count = int(input())
- sneakers_count = int(input())
- rackets_sum = racket_price * racket_count
- sneakers_sum = racket_price / 6 * sneakers_count
- price = (rackets_sum + sneakers_sum) + ((rackets_sum + sneakers_sum) * 0.2)
- print(f'Price to be paid by Djokovic {int(price / 8)}')
- print(f'Price to be paid by sponsors {ceil(price * 7 / 8)}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement