Advertisement
desislava_topuzakova

Untitled

Apr 22nd, 2020
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. import math
  2.  
  3. hours = int(input())
  4. days = int(input())
  5. workers = int(input())
  6. hoursWork = (days - 0.10 * days) * 8;
  7. extraTime = workers * (2 * days);
  8. sumHours = math.floor(hoursWork + extraTime);
  9. if sumHours >= hours:
  10. print(f'Yes!{sumHours-hours:.0f} hours left.')
  11. else:
  12. print(f'Not enough time!{hours - sumHours:.0f} hours needed.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement