Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- processors = int(input())
- workers = int(input())
- days = int(input())
- diff = (processors - workers * days * 8 // 3) * 110.10
- if diff > 0:
- print(f"Losses: -> {diff:.2f} BGN")
- else:
- print(f"Profit: -> {abs(diff):.2f} BGN")
- Тарикатско решение и с тернарен оператор:
- diff = (int(input()) - int(input()) * int(input()) * 8 // 3) * 110.10
- print(f"{'Losses' if diff > 0 else 'Profit'}: -> {abs(diff):.2f} BGN")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement