Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import floor
- number_cpu = int(input())
- number_employees = int(input())
- work_days = int(input())
- total_hours = number_employees * work_days * 8
- total_cpu = floor(total_hours / 3)
- profit = number_cpu - total_cpu
- total_profit = abs(profit * 110.10)
- if total_cpu > number_cpu:
- print(f"Profit: -> {total_profit:.2f} BGN")
- else:
- print(f"Losses: -> {total_profit:.2f} BGN")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement