Advertisement
_fakeuser_

Untitled

Oct 23rd, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. x1 = int(input())
  2. y1 = int(input())
  3. x2 = int(input())
  4. y2 = int(input())
  5. x3 = int(input())
  6. y3 = int(input())
  7. 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:
  8.     print('B and C')
  9. 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:
  10.     print('A and C')
  11. else:
  12.     print('B and C')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement