Advertisement
Spocoman

05. Firm

Dec 18th, 2021 (edited)
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. needed_hours = int(input())
  2. days = int(input())
  3. workers = int(input())
  4. total_hours = int(days * 0.9 * workers * (8 + 2))
  5.  
  6. if needed_hours > total_hours:
  7.     print(f'Not enough time!{needed_hours - total_hours} hours needed.')
  8. else:
  9.     print(f'Yes!{total_hours - needed_hours} hours left.')
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement