Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import floor
- project_hours = int(input())
- company_days = int(input())
- employees = int(input())
- employee_extra_hours = 2
- employees_work_hours = 8
- employee_work_days = company_days * 0.9
- employee_working_hours = floor(employee_work_days * employees_work_hours)
- extra_working_hours = (employees * employee_extra_hours) * company_days
- time_to_finish_project = extra_working_hours + employee_working_hours
- if time_to_finish_project >= project_hours:
- left_time = time_to_finish_project - project_hours
- print(f'Yes!{left_time} hours left.')
- elif time_to_finish_project < project_hours:
- not_enough_time = project_hours - time_to_finish_project
- print(f'Not enough time!{not_enough_time} hours needed.')
Advertisement
Add Comment
Please, Sign In to add comment