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