Advertisement
JeXerT

задача

Feb 27th, 2022
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import math
  2. number_processors = int(input())
  3. number_workers = int(input())
  4. work_days = int(input())
  5.  
  6. processor_number = number_processors
  7. hours = number_workers * work_days * 8
  8. processors = math.floor(hours / 3)
  9.  
  10. profit_or_lose = number_processors - processors
  11. lose_or_profit = profit_or_lose * 110.10
  12. format_float = "{:.2f}".format(lose_or_profit)
  13. if processors > number_processors:
  14. print(f"Profit: -> {format_float} BGN")
  15. else:
  16. print(f"Losses: -> {format_float} BGN")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement