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