Sichanov

ds

Sep 22nd, 2021
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.73 KB | None | 0 0
  1. from math import floor
  2.  
  3. project_hours = int(input())
  4. company_days = int(input())
  5. employees = int(input())
  6.  
  7. employee_extra_hours = 2
  8. employees_work_hours = 8
  9.  
  10. employee_work_days = company_days * 0.9
  11. employee_working_hours = floor(employee_work_days * employees_work_hours)
  12.  
  13. extra_working_hours = (employees * employee_extra_hours) * company_days
  14. time_to_finish_project = extra_working_hours + employee_working_hours
  15.  
  16. if time_to_finish_project >= project_hours:
  17.     left_time = time_to_finish_project - project_hours
  18.     print(f'Yes!{left_time} hours left.')
  19.  
  20. elif time_to_finish_project < project_hours:
  21.     not_enough_time = project_hours - time_to_finish_project
  22.     print(f'Not enough time!{not_enough_time} hours needed.')
Advertisement
Add Comment
Please, Sign In to add comment