Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import floor
- biscuits = int(input())
- workers = int(input())
- competitor_biscuits = int(input())
- total_biscuits = 0
- for each_day in range(1, 31):
- biscuits_per_day = workers * biscuits
- if each_day % 3 == 0:
- biscuits_per_day = floor(biscuits_per_day * 0.75)
- total_biscuits += biscuits_per_day
- print(f'You have produced {total_biscuits} biscuits for the past month.')
- percentage = total_biscuits / competitor_biscuits * 100
- if total_biscuits > competitor_biscuits:
- print(f'You produce {percentage - 100:.2f} percent more biscuits.')
- else:
- print(f'You produce {100 - percentage:.2f} percent less biscuits.')
Advertisement
Add Comment
Please, Sign In to add comment