Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import floor
- processors_needed = int(input())
- workers = int(input())
- working_days = int(input())
- manufactured_processors = floor(working_days * 8 * workers / 3)
- if manufactured_processors < processors_needed:
- print(f"Losses: -> {(processors_needed - manufactured_processors) * 110.1:.2f} BGN")
- else:
- print(f"Profit: -> {(manufactured_processors - processors_needed) * 110.1:.2f} BGN")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement