Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import math
  2.  
  3. x1 = int(input())
  4. y1 = int(input())
  5. x2 = int(input())
  6. y2 = int(input())
  7.  
  8. def check(x,y,z,w):
  9. first = math.sqrt(abs(x**2) + abs(y**2))
  10. second = math.sqrt(abs(z**2) + abs(w**2))
  11. if first == second:
  12. return x, y
  13. elif first > second:
  14. return z, w
  15. else:
  16. return x, y
  17.  
  18. print(check(x1,y1,x2,y2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement