Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- def solve(x, y):
- return math.sqrt(math.pow(x, 2) + math.pow(y, 2))
- x1 = float(input())
- y1 = float(input())
- x2 = float(input())
- y2 = float(input())
- if solve(x1, y1) <= solve(x2, y2):
- print(f"({math.floor(x1)}, {math.floor(y1)})")
- else:
- print(f"({math.floor(x2)}, {math.floor(y2)})")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement