Advertisement
desislava_topuzakova

2. AND Processors

Apr 16th, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. import math
  2. processors = int(input())
  3. workers = int(input())
  4. days = int(input())
  5. workHours = workers * days * 8
  6. procReady = (int)(math.floor(workHours / 3))
  7. if procReady < processors:
  8.     print("Losses: -> %.2f BGN" % ((processors - procReady) * 110.10))
  9. else:
  10.     print("Profit: -> %.2f BGN" % ((procReady - processors) * 110.10))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement