Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- height = int(input())
- width = int(input())
- skip_surface = int(input())
- total_surface = height * width * 4
- total_paint_surface = math.ceil(total_surface - (total_surface * (skip_surface / 100)))
- painted = 0
- while True:
- paint = input()
- if paint == "Tired!":
- print(f"{total_paint_surface - painted} quadratic m left.")
- break
- painted += int(paint)
- if painted > total_paint_surface:
- print(f"All walls are painted and you have {painted - total_paint_surface} l paint left!")
- break
- elif painted == total_paint_surface:
- print("All walls are painted! Great job, Pesho!")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement