Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- hours = int(input())
- days = int(input())
- workers = int(input())
- hoursWork = (days - 0.10 * days) * 8;
- extraTime = workers * (2 * days);
- sumHours = math.floor(hoursWork + extraTime);
- if sumHours >= hours:
- print(f'Yes!{sumHours-hours:.0f} hours left.')
- else:
- print(f'Not enough time!{hours - sumHours:.0f} hours needed.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement