BbJLeB

05. Firm

May 10th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. # 05. Firm
  2. import math
  3.  
  4. need_hours = int(input())
  5. days = int(input())
  6. guys = int(input())
  7.  
  8. end_days = days - (days * 0.1)
  9. day_and_hours = end_days * 8
  10. guys_more_hours = guys * (2 * days)
  11. all_hours = math.trunc(day_and_hours + guys_more_hours)
  12. end = all_hours - need_hours
  13. end1 = need_hours - all_hours
  14. if all_hours >= need_hours:
  15.     print(f"Yes!{end} hours left.")
  16. elif all_hours <= need_hours:
  17.     print(f"Not enough time!{end1} hours needed.")
Advertisement
Add Comment
Please, Sign In to add comment