Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- h = int(input())
- x = int(input())
- y = int(input())
- if (0 < x < 3*h and 0 < y < h) or (h < x < 2*h and 0 < y < 4*h):
- print("inside")
- elif (0 <= x < h and h < y <= 4*h) or (2*h < x <= 3*h and h < y <= 4*h) or y < 0 or x < 0 or y > 4*h or x > 3*h:
- print("outside")
- else:
- print("border")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement