Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 05. Firm
- import math
- need_hours = int(input())
- days = int(input())
- guys = int(input())
- end_days = days - (days * 0.1)
- day_and_hours = end_days * 8
- guys_more_hours = guys * (2 * days)
- all_hours = math.trunc(day_and_hours + guys_more_hours)
- end = all_hours - need_hours
- end1 = need_hours - all_hours
- if all_hours >= need_hours:
- print(f"Yes!{end} hours left.")
- elif all_hours <= need_hours:
- print(f"Not enough time!{end1} hours needed.")
Advertisement
Add Comment
Please, Sign In to add comment