Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x0, y0 = map(int,input().split())
- x1, y1 = map(int,input().split())
- x2, y2 = map(int,input().split())
- contador = 0
- if x1 > x2:
- if y1 > y2:
- if x0 > x2 and x0 < x1:
- if y0 > y2 and y0 < y1:
- contador += 1
- else:
- if x0 > x2 and x0 < x1:
- if y0 < y2 and y0 > y1:
- contador += 1
- else:
- if y1 > y2:
- if x0 < x2 and x0 > x1:
- if y0 > y2 and y0 < y1:
- contador += 1
- else:
- if x0 < x2 and x0 > x1:
- if y0 < y2 and y0 > y1:
- contador += 1
- print(contador)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement