Advertisement
bl00dt3ars

02. AND Processors

Apr 25th, 2021
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. from math import floor
  2.  
  3. processors_needed = int(input())
  4. workers = int(input())
  5. working_days = int(input())
  6.  
  7. manufactured_processors = floor(working_days * 8 * workers / 3)
  8.  
  9. if manufactured_processors < processors_needed:
  10.     print(f"Losses: -> {(processors_needed - manufactured_processors) * 110.1:.2f} BGN")
  11. else:
  12.     print(f"Profit: -> {(manufactured_processors - processors_needed) * 110.1:.2f} BGN")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement