Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- x1 = int(input())
- y1 = int(input())
- x2 = int(input())
- y2 = int(input())
- def check(x,y,z,w):
- first = math.sqrt(abs(x**2) + abs(y**2))
- second = math.sqrt(abs(z**2) + abs(w**2))
- if first == second:
- return x, y
- elif first > second:
- return z, w
- else:
- return x, y
- print(check(x1,y1,x2,y2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement