Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x1 = int(input())
- y1 = int(input())
- x2 = int(input())
- y2 = int(input())
- x3 = int(input())
- y3 = int(input())
- if (((x2 - x1) ** 2) + (y2 - y1) ** 2) ** 0.5 > (((x3 - x2) ** 2) + (y3 - y2) ** 2) ** 0.5 and (((x3 - x1) ** 2) + (y3 - y1) ** 2) ** 0.5 > (((x3 - x2) ** 2) + (y3 - y2) ** 2) ** 0.5:
- print('B and C')
- elif (((x2 - x1) ** 2) + (y2 - y1) ** 2) ** 0.5 > (((x3 - x1) ** 2) + (y3 - y1) ** 2) ** 0.5 and (((x3 - x2) ** 2) + (y3 - y2) ** 2) ** 0.5 > (((x3 - x1) ** 2) + (y3 - y1) ** 2) ** 0.5:
- print('A and C')
- else:
- print('B and C')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement