Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import ceil
- first_time = float(input())
- second_time = float(input())
- third_time = float(input())
- father_time = float(input())
- cleaning_time = 1 / (1 / first_time + 1 / second_time + 1 / third_time) * 1.15;
- print(f"Cleaning time: {cleaning_time:.2f}")
- if father_time - cleaning_time > 0:
- print(f"Yes, there is a surprise - time left -> {int(father_time - cleaning_time)} hours.")
- else:
- print(f"No, there isn't a surprise - shortage of time -> {ceil(cleaning_time - father_time)} hours.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement