Advertisement
Guest User

Task

a guest
Jun 26th, 2022
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. from math import floor
  2. number_cpu = int(input())
  3. number_employees = int(input())
  4. work_days = int(input())
  5. total_hours = number_employees * work_days * 8
  6. total_cpu = floor(total_hours / 3)
  7. profit = number_cpu - total_cpu
  8. total_profit = abs(profit * 110.10)
  9. if total_cpu > number_cpu:
  10. print(f"Profit: -> {total_profit:.2f} BGN")
  11. else:
  12. print(f"Losses: -> {total_profit:.2f} BGN")
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement