Problem:
Distance Write a program which calculates the distance between two points P1(x1, y1) and P2(x2, y2). Input Four real numbers x1, y1, x2 and y2 are given in a line. Output Print the distance in real number. The output should not contain an absolute error greater than 10 -4 . Sample Input 0 0 1 1 Sample Output 1.41421356

Solution (Python):
import math
x1,y1,x2,y2=map(float,input().split())
dx=(x1-x2)
dy=(y1-y2)
print(math.sqrt(dx*dx+dy*dy))

Solution (Python):
a,b,c,d=map(float,input().split())

k=c-a
l=d-b

n=(k*k+l*l)**(1/2)

print('{:.8f}'.format(n))

Solution (Python):
import math

x1,y1,x2,y2 = [float(i) for i in input().strip().split()]

distance = math.sqrt((x1-x2)**2 + (y1-y2)**2)

print(distance)

Solution (Python):
import math

x1,y1,x2,y2=map(float,input().split())
x=x2-x1
y=y2-y1
ans=math.sqrt(math.pow(x,2)+math.pow(y,2))
print(f'{ans:.8f}')

Solution (Python):
import math
x1, y1, x2, y2 = map(float,input().split())

n = (x2-x1)**2+(y2-y1)**2
N = math.sqrt(n)
print('{:.8f}'.format(N))

Solution (Python):
import math
x1,y1,x2,y2=map(float,input().split())


print(round(math.sqrt((x1-x2)**2+(y1-y2)**2),7))

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
print(((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5)

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())

print("%.8f" % math.sqrt((x2 - x1)**2 + (y2- y1)**2))

Solution (Python):
import math

x1,y1,x2,y2 = map(float, input().split())


dx = x1 - x2
dy = y1 - y2
print(math.sqrt(dx ** 2 + dy ** 2))

Solution (Python):
x1,y1,x2,y2=map(float,input().split())
print(((x2-x1)**2+(y2-y1)**2)**0.5)

Solution (Python):
import math
x1,y1,x2,y2 = map(float,input().split())
x = x1 - x2
y = y1 - y2
ans = math.sqrt(x**2 + y**2)
print(ans)

Solution (Python):
import math
a,b,c,d = map(float,input().split())
taiga = (c-a)**2 + (d-b)**2
print(math.sqrt(taiga))

Solution (Python):
import math
a,b,c,d=map(float,input().split())
x=(a-c)**2
y=(b-d)**2

l=math.sqrt(x+y)
print(l)

Solution (Python):
import math


x1, y1, x2, y2 = map(float, input().split())
l = math.sqrt((x1 - x2)**2 + (y1 - y2)**2)
print(l)

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())

d = math.sqrt((x2 - x1)**2 + (y2 - y1)**2)  
print("{:.8f}".format(d))

Solution (Python):
import math
A = list(map(float, input().split()))

ans = math.sqrt((A[0]-A[2])**2 + (A[1]-A[3])**2)
print(ans)

Solution (Python):
import math as mt
x = list(map(float,input().split()))

a = ((x[0]-x[2])**2)+((x[1]-x[3])**2)


print(mt.sqrt(a))

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())

d = math.sqrt((x1-x2)**2 + (y1-y2)**2)
print(d)

Solution (Python):
import math
x1,y1,x2,y2 = map(float,input().split())
t = math.sqrt((x2-x1)**2 + (y2-y1)**2)
print(t)

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
l = math.sqrt((x2-x1)**2+(y2-y1)**2)
print(l)

Solution (Python):
x1, y1, x2, y2 = [float(n) for n in input().split()]
print(((x2-x1)**2+(y2-y1)**2)**0.5)

Solution (Python):
import math

a, b, c, d = map(float, input().split())

print(math.sqrt((abs(c - a) ** 2) + (abs(d - b) ** 2)))

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())

x = x1 - x2
y = y1 - y2

ans = math.sqrt(x * x + y * y)
print(ans)

Solution (Python):
from math import sqrt, pow

x1, y1, x2, y2 = list(map(float, input().split()))
print(sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)))

Solution (Python):
import math as mt

x1 , y1 , x2,y2 = list(map(float, input().split()))
a = pow(x2 - x1,2 )
b = pow(y2 - y1,2)
c = mt.sqrt(a+b)
print(f'{c:.8f}')

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
distance = ((x1 - x2) ** 2 + (y1 - y2) ** 2) ** (1 / 2)
print(f"{distance:.5f}")

Solution (Python):
x1,x2,y1,y2=map(float,input().split())

print(((x1-y1)**2+(x2-y2)**2)**0.5)

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
print(math.sqrt((x2-x1)**2 + (y2-y1)**2) )

Solution (Python):
import math
x1,y1,x2,y2 =  map(float,input().split())
print(math.sqrt((x1-x2)**2 + (y1-y2)**2))

Solution (Python):
from math import sqrt
x1, y1, x2, y2 = map(float, input().split())
X = abs(x1 - x2)
Y = abs(y1 - y2)
print(sqrt(X**2 + Y**2))

Solution (Python):
import math
x1,y1,x2,y2=map(float,input().split())
d=math.sqrt((x1-x2)**2 + (y1-y2)**2)
print(d)

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
x = abs(x1 - x2)
y = abs(y1 - y2)
ans = math.sqrt(x**2 + y**2)
print('{:.5f}'.format(ans))

Solution (Python):
import math
a,b,c,d = map(float, input().split(' '))
t = (a - c)**2
h = (b - d)**2
z = t + h
print(math.sqrt(z))

Solution (Python):
a,b,c,d = map(float,input().split())
temp = ((a-c)**2+(b-d)**2)**0.5
print(temp)

Solution (Python):
x1, y1, x2, y2 = list(map(float,input().split()))

print(((x1 - x2)**2+(y1 - y2)**2)**0.5)

Solution (Python):
import math

x1, y1, x2, y2 = map(float,input().split())

x = x2 - x1
y = y2 - y1

z = math.sqrt(x*x + y*y)
print(z)

Solution (Python):
import math
x1,y1,x2,y2=map(float,input().split())
x=(x1-x2)**2+(y1-y2)**2
y=math.sqrt(x)
print((f"{y:.5f}"))

Solution (Python):
import math
x1, y1, x2, y2 = map(float,input().split())
a = math.sqrt(abs(x1-x2)**2+abs(y1-y2)**2)
print(f'{a:.8f}')

Solution (Python):
import math
x1,y1,x2,y2=map(float,input().split())
L=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)
print(math.sqrt(L))

Solution (Python):
import math
x1,y1,x2,y2 = map(float,input().split())

r = math.sqrt((x1-x2)**2+(y1-y2)**2)
print(r)

Solution (Python):
import math
x1,y1,x2,y2=map(float,input().split())
print(math.sqrt((x1-x2)**2+(y1-y2)**2))

Solution (Python):
x1,y1,x2,y2=map(float, input().split())

if x1<x2:
    x1,x2=x2,x1
if y1<y2:
    y1,y2=y2,y1

n=((x1-x2)**2+(y1-y2)**2)**(1/2)
print(n)

Solution (Python):
import math

x1, y1, x2, y2 = map(float,input().split())

print(math.sqrt(((x2 - x1) ** 2) + ((y2 - y1) ** 2)))

Solution (Python):
a,b,c,d=map(float,input().split())
e=(c-a)**2
f=(d-b)**2
print(f"{(e+f)**(1/2):.8f}")

Solution (Python):
x1, y1, x2, y2, = map(float, input().split())
distance = ((x1 - x2) ** 2 + (y1 - y2) ** 2) ** 0.5
print(distance)

Solution (Python):
a,b,c,d=map(float,input().split())
x=abs(a-c)
y=abs(b-d)
z=x**2+y**2
print(pow(z,0.5))

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
a = x2 - x1
b = y2 - y1
print(math.sqrt(a**2 + b**2))

Solution (Python):

from sys import stdin
import math


A = list(map(float, stdin.readline().split()))
x1, y1, x2, y2 = A[0], A[1], A[2], A[3]

distance = math.sqrt(math.pow(x2-x1, 2) + math.pow(y2-y1,2))
print(format(distance,'.8f'))

Solution (Python):
x1,y1,x2,y2 = map(float,input().split())
ans = ((x2-x1)**2+(y2-y1)**2)**(1/2)
print(ans)

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
a = math.sqrt((x2-x1)**2 + (y2-y1)**2)
print(a)

Solution (Python):
import math
i=list(map(float,input().split()))
x=(i[2]-i[0])**2
y=(i[3]-i[1])**2
print(math.sqrt(x+y))

Solution (Python):
x1,y1,x2,y2 = map(float, input().split())
print( ((x1-x2)**2+(y1-y2)**2)**0.5)

Solution (Python):
x = list(map(float,input().split()))

y = round(((x[0]-x[2])**2 + (x[1]-x[3])**2)**0.5,8)

print(y)

Solution (Python):
import math
x1,y1,x2,y2=map(float, input().split())
a=x1-x2
b=y1-y2
x=math.sqrt(a**2+b**2)
print(x)

Solution (Python):
import sys 
import math

input = sys.stdin.readline

def main():
    x1,y1,x2,y2 = map(float, input().rstrip().split())
    
    print(math.sqrt((x2-x1)**2 + (y2-y1)**2))
    
if __name__ == "__main__":
    main()

Solution (Python):

import math

def run():
    x1,y1,x2,y2=tuple(map(float,input().split()))
    
    r=math.sqrt((x1-x2)**2+(y1-y2)**2)
    
    
    print(f"{r:.30f}")


run()

Solution (Python):
x1,y1,x2,y2=map(float,input().split())

result = ((x2-x1)**2+(y2-y1)**2)**0.5

print("{:.5f}".format(result))

Solution (Python):
import math
x1,y1,x2,y2=[float(x) for x in input().split(' ')]
dis=math.sqrt((y2 - y1)**2 + (x2-x1)**2)
print("{:.4f}".format(dis))

Solution (Python):
x1,y1,x2,y2=map(float,input().split())
n=((x1-x2)**2+(y1-y2)**2)**(1/2)
print('{:.8f}'.format(n))

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
x = abs(x2 - x1)
y = abs(y2 - y1)
r = (x**2 + y**2)**(1/2)
print(r)

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())

dist = math.sqrt((x1-x2) ** 2 + (y1-y2) ** 2)
print("{:.5f}".format(dist))

Solution (Python):
x1,y1,x2,y2 = map(float,input().split())

print(((x2-x1)**2 + (y2-y1)**2)**0.5)

Solution (Python):
import math

x1,y1,x2,y2=map(float,input().split())

a = ((x1-x2)**2)+((y1-y2)**2)

a = math.sqrt(a)

print('{:.8f}'.format(a))

Solution (Python):
import math
x1,y1,x2,y2=map(float,input().split())

d=math.sqrt((x2-x1)**2+(y2-y1)**2)
print('{:.5f}'.format(d))

Solution (Python):
import math
a,b,c,d = map(float,input().split())
x = abs(c-a)
y = abs(d-b)
S = (x**2+y**2)**0.5
print(S)

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
d = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
print(d)

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())

print(((x2-x1)**2+(y2-y1)**2)**0.5)

Solution (Python):
import math
x1,y1,x2,y2 = map(float, input().split())

ans = math.sqrt((x1-x2)**2 + (y1-y2)**2)
print(ans)

Solution (Python):
import math
x1,y1,x2,y2=map(float,input().split())
X=x2-x1
Y=y2-y1
L=math.sqrt(X**2+Y**2)
print(f'{L:.8f}')

Solution (Python):


import math

a,b,c,d= map(float,input().split())
A = (a-c)**2+(b-d)**2
if A<0:
    A = math.fabs(A)
print(math.sqrt(A))

Solution (Python):



x1, y1, x2, y2 = map(float, input().split())
ans = ((x1 - x2) ** 2 + (y1 - y2) ** 2) ** 0.5
print(ans)

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())

r = (x1 - x2) ** 2 + (y1 - y2)**2
r = math.sqrt(r)
print(format(r, '.8f'))

Solution (Python):
def resolve():
    import math
    x1, y1, x2, y2 = [float(i) for i in input().split()]
    print(math.sqrt((x2 - x1)**2 + (y2 - y1)**2))


resolve()

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
distance = ( (x2-x1)**2 + (y2-y1)**2 )**(1/2)
print(distance)

Solution (Python):
import math
x1,y1,x2,y2 = [float(i) for i in input().split()]
def dis(x1,y1,x2,y2):
    return math.sqrt((x2-x1) ** 2 + (y2-y1) ** 2)

print("{0:.6f}".format(dis(x1,y1,x2,y2)))

Solution (Python):
x1, y1, x2, y2 = map(float,input().split())
print(f'{((x2 - x1)**2 + (y2 - y1)**2)**0.5:.6f}')

Solution (Python):
x1, y1, x2, y2 = list(map(float, input().split()))

x = x2 - x1
y = y2 - y1
answer = (x**2 + y **2)**0.5
print(f"{answer}")

Solution (Python):
import math

def main():
    x1, y1, x2, y2 = map(float, input().split())
    ans = math.sqrt(math.pow(abs(x1 - x2), 2) + math.pow(abs(y1 - y2), 2))
    print(ans)

if __name__ == '__main__':
    main()

Solution (Python):
import math
n=list(map(float,input().split()))
a=(n[0]-n[2])**2+(n[1]-n[3])**2
b=math.sqrt(a)
print(round(b,8))

Solution (Python):


x1,y1,x2,y2=map(float,input().split())

x1,x2=sorted([x1,x2])
y1,y2=sorted([y1,y2])
print(((x2-x1)**2+(y2-y1)**2)**0.5)

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())
dist = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)

print(dist)

Solution (Python):
from math import sqrt
x1, y1, x2, y2 = map(float, input().split())
print(sqrt(abs(x1-x2)**2 + abs(y1-y2)**2))

Solution (Python):
def calc_distance_v2():
    x1, y1, x2, y2 = map(float, input().split())
    dist = abs(complex(x2 - x1, y2 - y1))
    print(dist)


if __name__ == "__main__":
    calc_distance_v2()

Solution (Python):
x1,y1,x2,y2=map(float,input().split())
a=(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)
print(a**(1/2))

Solution (Python):
import math

x1, y1, x2, y2 = input().split()
x1, y1, x2, y2 = float(x1), float(y1), float(x2), float(y2)
l = math.sqrt((x1-x2)**2 + (y1-y2)**2)
print('{0:.6f}'.format(l))

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())

d = math.sqrt((x1-x2)**2+(y1-y2)**2)
print(d)

Solution (Python):
import math
x1, y1, x2, y2 = map(float,input().split())

dis = math.sqrt((x1-x2)**2 + (y1-y2)**2)

print(dis)

Solution (Python):
import math
a=list(map(float,input().split()))

d=math.sqrt(pow(a[0]-a[2],2)+pow(a[1]-a[3],2))

print(d)

Solution (Python):
import math
x1,y1,x2,y2=map(float,input().split())
x=math.fabs(x1-x2)
y=math.fabs(y1-y2)
z=pow(x,2)+pow(y,2)
r=math.sqrt(z)
print(r)

Solution (Python):
x1,y1,x2,y2 = map(float,input().split())

res = ((x2 - x1)**2 + (y2 - y1)**2)**0.5

print("{:.8f}".format(res))

Solution (Python):

x1 , y1 , x2 , y2 = map(float,input().split())
x = abs(x2 - x1)
y = abs(y2 - y1)
print('{:.8f}'.format((x**2 + y**2)**(1/2)))

Solution (Python):
x1, y1, x2, y2 =(float(x) for x in input().split())

distance = ((x2-x1) ** 2 + (y2-y1) ** 2) ** (1/2)
print(distance)

Solution (Python):
import math
x1,y1,x2,y2 = map(float,input().split())
d = math.sqrt((x1 - x2)**2 + (y1-y2)**2)
print('{:.8f}'.format(d))

Solution (Python):
sx,sy,ex,ey = input().split()
import math
print(math.sqrt((abs(float(ex)-float(sx)))**2+(abs(float(ey)-float(sy)))**2))

Solution (Python):
import math

x1, y1, x2, y2 = [float(arg) for arg in input().split()]
print(math.sqrt((x2-x1)**2 + (y2-y1)**2))

Solution (Python):

x1,y1,x2,y2=map(float,input().split(' '))
print(((x1-x2)**2+(y1-y2)**2)**0.5)

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
print("{:.5f}".format(math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)))

Solution (Python):
x1,x2,y1,y2=map(float,input().split())
import math
print(math.sqrt((x1-y1)**2+(x2-y2)**2))

Solution (Python):
import math as m

x1, y1, x2, y2 = map(float, input().split())

X = x2-x1
Y = y2-y1

X = m.pow(X, 2)
Y = m.pow(Y, 2)

distance = m.sqrt((X+Y))

print(f'{distance}', end='')

Solution (Python):
x1, y1, x2, y2 = map(float,input().split())
print((abs(x1-x2)**2 + abs(y1-y2)**2)**0.5)

Solution (Python):
x1,y1,x2,y2 = input().split()
x1 = float(x1)
y1 = float(y1)
x2 = float(x2)
y2 = float(y2)
print(((x2-x1)**2+(y2-y1)**2)**(1/2))

Solution (Python):
import math
a,b,c,d=list(map(float,input().split()))
print('{number:.5f}'.format(number=math.sqrt((a-c)*(a-c)+(b-d)*(b-d))))

Solution (Python):
import math
x1,y1,x2,y2 = map(float,input().split())
print(math.sqrt((x2-x1)**2 + (y2 -y1)**2))

Solution (Python):
from sys import stdin
x1, y1, x2, y2 = map(float, stdin.readline().split())
ans = ((x2-x1)**2+(y2-y1)**2) ** 0.5
print(ans)

Solution (Python):
import math

x1,y1,x2,y2 = map(float,input().split())
xx = (x2 - x1) ** 2
yy = (y2 - y1) ** 2
print(f"{math.sqrt(xx + yy):.8f}")

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
r = ((x2-x1)**2 + (y2-y1)**2)**(1/2)
print(r)

Solution (Python):
import math as m
x1,y1,x2,y2=map(float,input().split())
r=m.pow(m.pow(x2-x1,2)+m.pow(y2-y1,2),1/2)
print(f'{r:.8f}')

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())
result = math.sqrt(((x2 - x1) ** 2) + ((y2 - y1) ** 2))
print(f'{result:.5f}')

Solution (Python):
import math

a, b, c, d = map(float, input().split())

ac = a - c

bd = b - d

print(math.sqrt(ac ** 2 + bd ** 2))

Solution (Python):
import math

def main():
 x1, y1, x2, y2 = map(float, input().split())

 d = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)

 print(d)

if __name__ == '__main__':
  main()

Solution (Python):

import math

x1,y1,x2,y2 = map(float,input().split())
dx=x1-x2
dy=y1-y2

print(math.sqrt((dx**2+dy**2)))

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
a = float(math.sqrt((x2-x1)**2 +(y2-y1)**2))
print(a)

Solution (Python):
import math
x1,y1,x2,y2 = map(float,input().split())
a=x1-x2
b=y1-y2
c=a**2+b**2
print(math.sqrt(c))

Solution (Python):
from math import sqrt
a, b, c, d = map(float, input().split())
distance = sqrt((a-c)**2 + (b-d)**2)
print(distance)

Solution (Python):
import math as m

x_1,y_1,x_2,y_2=map(float,input().split())
w=abs(x_2-x_1)
h=abs(y_2-y_1)

root=m.sqrt(w**2+h**2)
print('{:.8f}'.format(root))

Solution (Python):
import math
x1,y1,x2,y2 = map(float,input().split())
print(math.sqrt((x1-x2)**2 + (y1-y2)**2))

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())
dis = math.sqrt((x2-x1)**2 + (y2-y1)**2)
print(dis)

Solution (Python):
import math
int_line = input().split(" ")
int_list = [float(a) for a in int_line]
num1 = int_list[2] - int_list[0]
num2 = int_list[3] - int_list[1]
if num1 < 0:
    num1 *= -1
if num2 < 0:
    num2 *= -1
num3 = num1 ** 2 + num2 ** 2
num4 = math.sqrt(num3)
print(round(num4,5))

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())
print(math.sqrt(abs(x2-x1)**2 + abs(y2-y1)**2))

Solution (Python):
x1,y1,x2,y2 = map(float,input().split())
print( ((x1-x2)**2+(y1-y2)**2) **0.5)

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
print(math.sqrt((x1-x2)**2+(y1-y2)**2))

Solution (Python):
import math

x1, x2, y1, y2 = map(float, input().split())
print(math.sqrt((x1 - y1) ** 2 + (x2 - y2) ** 2))

Solution (Python):
import math
x1,x2,y1,y2 = map(float,input().split())
d = math.sqrt((y1 - x1) ** 2 + (y2 - x2) ** 2)
print(d)

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())

x = (x2 - x1) ** 2
y = (y2 - y1) ** 2

print(f"{math.sqrt(x + y):.5f}")

Solution (Python):
x1,y1,x2,y2=map(float,input().split())
print(((x1-x2)**2+(y1-y2)**2)**0.5)

Solution (Python):
import math

x1,y1,x2,y2 = map(float,input().split())

x3 = (x2-x1) ** 2
y3 = (y2-y1) ** 2

print(math.sqrt(x3 + y3))

Solution (Python):

import math

x1,y1,x2,y2 = map(float,input().split())
num = (x2 - x1) ** 2 + (y2 - y1) ** 2
num = math.sqrt(num)
print(num)

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
print(math.sqrt((x2-x1)**2 + (y2-y1)**2))

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())
dist = math.sqrt((x2 - x1)**2 + (y2- y1)**2)
print('{:.8f}'.format(dist))

Solution (Python):
import math
x_1, y_1, x_2, y_2 = map(float,input().split())
x = x_2 - x_1
y = y_2 - y_1
print(math.sqrt(x * x + y * y))

Solution (Python):
import math

x1,y1,x2,y2=map(float, input().split(" "))

ans=math.sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))

print(ans)

Solution (Python):
import math

x1, y1, x2 , y2 = map(float,input().split())
l = math.sqrt((x2 - x1)**2 + (y2 - y1)**2)
print(l)

Solution (Python):
import math

x1,y1,x2,y2 = map(float, input().split())
print(math.sqrt((x1-x2)**2 + (y1-y2)**2))

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
a = x2 - x1
b = y2 - y1
ans = math.sqrt(a**2 + b**2)
print(ans)

Solution (Python):
x1,y1,x2,y2 = map(float,input().split())

distance = (x2 - x1)**2 + (y2 - y1)**2

print(distance**0.5)

Solution (Python):
import math
term = input().split()
P1x = float(term[0])
P1y = float(term[1])
P2x = float(term[2])
P2y = float(term[3])

print('{}'.format(math.sqrt((P2x - P1x)**2 + (P2y - P1y)**2)))

Solution (Python):
import math
x1, y1, x2, y2 = map(float,input().split())
dist = math.sqrt((x2-x1)**2 + (y2 -y1)**2)
print(str(dist))

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
w, h = abs(x1 - x2), abs(y1 - y2)
print(h if w == 0 else w if h == 0 else (w ** 2 + h ** 2) ** 0.5)

Solution (Python):
x1,y1,x2,y2 = map(float, input().split())
print(((x1 - x2)**2 + (y1 - y2)**2)**0.5)

Solution (Python):
import math
x1,y1,x2,y2 = map(float,input().split())
print (math.sqrt(((y2-y1)**2)+((x2-x1)**2)))

Solution (Python):
import math
x1,y1,x2,y2 = map(float, input().split())

ans = round(math.sqrt((x2-x1)**2+(y2-y1)**2), 4)
print(ans)

Solution (Python):
import math


if __name__ == "__main__":
    coords = list(map(float, input().split()))

    x1 = coords[0]
    y1 = coords[1]
    x2 = coords[2]
    y2 = coords[3]

    distance = math.hypot(abs(x1 - x2), abs(y1 - y2))

    print(distance)

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
cal = float(((x2 - x1)**2 + (y2 - y1)**2 )**0.5)
print (cal)

Solution (Python):
import math
x1, y1, x2, y2 = (float(x) for x in input().split())
print(math.sqrt((x1-x2)**2 + (y1-y2)**2))

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())
length = math.sqrt((x1-x2)**2 + (y1-y2)**2)
print(f"{length:.5f}")

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())
answer = (x2 - x1) ** 2 + (y2 - y1) ** 2
print('{:.8f}'.format(math.sqrt(answer)))

Solution (Python):
x1,y1,x2,y2 = map(float, input().split())
print(((x2-x1)**2+(y2-y1)**2)**0.5)

Solution (Python):
import math

x1,y1,x2,y2 = map(float,input().split())

w = (x1-x2)**2
h = (y1-y2)**2

print(math.sqrt(w+h))

Solution (Python):
import math
a,b,c,d = map(float,input().split())
def distance(x1, y1, x2, y2):
    d = math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)
    return d

print(distance(a,b,c,d))

Solution (Python):
from math import sqrt
x1, y1, x2, y2 = map(float, input().split())
total = sqrt((x1 - x2)**2 + (y1 - y2)**2)
print(total)

Solution (Python):
import math
x1,y1,x2,y2 = map(float,input().split())
print(math.sqrt((x2-x1)**2+(y2-y1)**2))

Solution (Python):
x1, y1, x2, y2 = list(map(float, input().split()))

dist = ((x1 - x2)**2 + (y1 - y2)**2)**(1/2)

print(dist)

Solution (Python):
import math
x_1,y_1,x_2,y_2 = map(float,input().split())
print(math.sqrt((x_1-x_2)**2 + (y_1-y_2)**2))

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())

ans = math.sqrt((x2-x1)**2 + (y2-y1)**2)
print(ans)

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
print(math.sqrt((x2 - x1)**2 + (y2 -y1)**2))

Solution (Python):
import sys
import math
x1,y1,x2,y2=map(float,input().split())
x=pow(abs(x2-x1),2)
y=pow(abs(y2-y1),2)
l=math.sqrt(x+y)
print(str(l))

Solution (Python):
x1,y1,x2,y2 = map(float,input().split())
x = abs(x2-x1)
y = abs(y2-y1)
z = pow(pow(x,2)+pow(y,2),0.5)
print(z)

Solution (Python):
a,b,c,d=map(float,input().split())
l=((a-c)**2+(b-d)**2)**(1/2)
l=round(l,6)
print(l)

Solution (Python):
import math

def distance(a, b, c, d):
    return math.sqrt((c-a)**2 + (d-b)**2)


a, b, c, d = map(float, input().split())
print(distance(a, b, c, d))

Solution (Python):
a,b,c,d=map(float,input().split())
print(abs(complex(c-a,d-b)))

Solution (Python):
x1,y1,x2,y2=map(float,input().split())
print(((x1-x2)**2+(y1-y2)**2)**0.5)

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())

dx = x2 - x1
dy = y2 - y1

print((dx ** 2 + dy ** 2) ** 0.5)

Solution (Python):
import math


def get_distance(x1, y1, x2, y2):
    return math.sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2))


x1, y1, x2, y2 = map(float, input().split(' '))
print(get_distance(x1, y1, x2, y2))

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
print(f'{abs(complex(x1 - x2, y1 - y2)):.5f}')

Solution (Python):
import math
import sys
input = sys.stdin.readline().rstrip

x1, x2, y1, y2 = map(float, input().split())

distance = math.sqrt((x1-y1)**2 + (x2-y2)**2)
print(distance)

Solution (Python):
ans = 0
import math
x1, y1, x2, y2 = map(float, input().split())

ans = (x1-x2)**2 + (y1-y2)**2
ans = math.sqrt(ans)
print(ans)

Solution (Python):


import math


x_1, y_1, x_2, y_2 = map(float, input().split())


ans = math.sqrt((x_2-x_1)**2 + (y_2-y_1)**2)


print(ans)

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
print(math.sqrt((x1-x2)**2+(y1-y2)**2))

Solution (Python):
x1,y1,x2,y2 = map(float,input().split())

d = ((x1-x2)**2 + (y1-y2)**2)**0.5

print(d)

Solution (Python):
import math
x = list(map(float, input().split()))
print(math.sqrt((x[2]-x[0])**2 + (x[3]-x[1])**2))

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
x = abs(x1 - x2)
y = abs(y1 - y2)
d = (x**2+y**2)**0.5
print('{:.6f}'.format(d))

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
print(math.sqrt((x1-x2)**2 + (y1-y2)**2))

Solution (Python):
import math
x1,y1,x2,y2 = map(float,input().split())

a = (x1 - x2)**2
b = (y1 - y2)**2

print(math.sqrt(a+b))

Solution (Python):
x1, y1, x2, y2 = [float(i) for i in input().split()]
print(((x1 - x2)**2 + (y1 - y2)**2)**0.5)

Solution (Python):
x,y,x_,y_=map(float,input().split())
X=abs(x-x_)**2
Y=abs(y-y_)**2
print("{:.4f}".format((X+Y)**(1/2)))

Solution (Python):
from math import sqrt
x1,y1,x2,y2 = map(float,input().split())
print(sqrt((x1-x2)**2+(y1-y2)**2))

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())

if x2 > x1:
    x = x2 - x1
    
else:
    x = x1 - x2
    
if y2 > y1:
    y = y2 - y1

else:
    y = y1 - y2
    
ans = math.sqrt(x ** 2 + y ** 2)

print(f"{ans:.4f}")

Solution (Python):
import math
s = input().rstrip().split(' ')
x0 = float(s[0])
y0 = float(s[1])
x1 = float(s[2])
y1 = float(s[3])
dis = math.sqrt((x1 - x0) ** 2 + (y1 - y0) ** 2)
print(dis)

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())
print('{:.8f}'.format(math.sqrt((x1-x2)**2 + (y1-y2)**2)))

Solution (Python):
import math
a,b,c,d = map(float,input().split())
print(((c-a)**2+(d-b)**2)**0.5)

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())

print(((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5)

Solution (Python):
x1, y1, x2, y2 = map(float,input().split())

distance = ((x1-x2)**2 + (y1-y2)**2)**0.5
print(distance)

Solution (Python):
import math
import copy
from copy import deepcopy
import sys
import fractions

from functools import reduce

import decimal
import heapq
import collections
import itertools
from operator import mul

sys.setrecursionlimit(100001)







def getInputInt():
    inputNum = int(input())
    return inputNum


def getInputListInt():
    outputData = []
    inputData = input().split()
    outputData = [int(n) for n in inputData]

    return outputData


def getSomeInputInt(n):
    outputDataList = []
    for i in range(n):
        inputData = int(input())
        outputDataList.append(inputData)

    return outputDataList


def getSomeInputListInt(n):
    inputDataList = []
    outputDataList = []
    for i in range(n):
        inputData = input().split()
        inputDataList = [int(n) for n in inputData]
        outputDataList.append(inputDataList)

    return outputDataList




x1, y1, x2, y2 = map(float, input().split())

ans = pow(x1-x2, 2) + pow(y1-y2, 2)
ans = math.sqrt(ans)
print(ans)

Solution (Python):
import math
x1, y1, x2, y2 = (float(i) for i in input().split())
print(math.sqrt((x1-x2)**2+(y1-y2)**2))

Solution (Python):

from math import sqrt

a,b,c,d = map(float,input().split())
print (sqrt((a-c)**2.0+(b-d)**2.0))

Solution (Python):
[x1,y1,x2,y2]=[float(item) for item in input().split()]
print((((x1-x2)**2+(y1-y2)**2))**(0.5))

Solution (Python):
x1,y1,x2,y2 = map(float, input().split())
print(((x2-x1)**2+(y2-y1)**2)**0.5)

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
print(math.sqrt((x1-x2)**2 + (y1-y2)**2))

Solution (Python):
x1, y1, x2, y2 = map(float,input().split())

dist = ((x1-x2)**2 + (y1-y2)**2)**0.5
print(dist)

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    x1, y1, x2, y2 = map(float, input().split())
    print(pow((x2-x1)**2 + (y2-y1)**2, 0.5))


if __name__ == "__main__":
    main()

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
print(abs(complex(x1-x2, y1-y2)))

Solution (Python):
import math
x1,y1,x2,y2=list(map(float, input().split()))
ans=math.sqrt(abs(x1-x2)**2+abs(y1-y2)**2)
print(ans)

Solution (Python):

import math
a,b,c,d = map(float,input().split())
print(math.sqrt((c-a)**2+(d-b)**2))

Solution (Python):
import math
x1,y1,x2,y2 = map(float,input().split())
dis = math.sqrt((x2-x1)**2+(y2-y1)**2)
print(round(dis,8))

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
x = (x2 - x1)**2
y = (y2 - y1)**2
print((x+y)**0.5)

Solution (Python):
import math

points = list(map(float,input().split()))
distance = math.sqrt((points[0] - points[2]) ** 2 + (points[1] - points[3]) ** 2)
print(distance)

Solution (Python):
import decimal
x1,y1,x2,y2 = map(decimal.Decimal,input().split())
ans = decimal.Decimal.sqrt((x1-x2)**2+(y1-y2)**2)
print(ans)

Solution (Python):
import math
x1,y1,x2,y2 = list(map(float,input().split()))

print("{:f}".format(math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)))

Solution (Python):
import math
x1,y1,x2,y2=map(float,input().split())

d=math.sqrt((x2-x1)**2+(y2-y1)**2)
print(d)

Solution (Python):
import math
x1,y1,x2,y2 = map(float,input().split())
a = (x2-x1)**2 + (y2-y1)**2
print(math.sqrt(a))

Solution (Python):
import math

a,b,c,d=map(float,input().split())

e=((c-a)**2+(d-b)**2)

print(math.sqrt(e))

Solution (Python):
import math
x1, y1, x2, y2 = list(map(float, input().split()))
x = (x2 - x1)**2
y = (y2 - y1)**2
z = x + y
print(math.sqrt(z))

Solution (Python):
import math
a,b,c,d=map(float,input().split())
ans=math.sqrt((c-a)**2+(d-b)**2)
print(round(ans,8))

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
print("{:.8f}".format(math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)))

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
l = math.sqrt((x2 - x1)**2 + (y2 - y1)**2)
print("{:.10f}".format(l))

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())
print(((x2 - x1) ** 2 + (y2 - y1) ** 2) ** (1/2))

Solution (Python):
x1,y1,x2,y2 = map(float,input().split())

print(format( ((x2-x1) ** 2 + (y2-y1) ** 2) ** 0.5,".5f"))

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())

print(math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2))

Solution (Python):
import math

x1,y1,x2,y2 = map(float,input().split())
print(math.sqrt((x2 - x1)**2 + (y2 - y1)**2))

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
print("{:.8f}". format(((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5))

Solution (Python):
import math

x1, y1, x2, y2 = map(float, input().split())
dis = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
print(dis)

Solution (Python):
import math

sc = list(map(float, input().split()))
x1 = sc[0]
y1 = sc[1]
x2 = sc[2]
y2 = sc[3]

print('{:.10f}'.format(math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)))

Solution (Python):
x1,y1,x2,y2 = map(float,input().split())
print(((x2-x1)**2+(y2-y1)**2)**0.5)

Solution (Python):
a = list(map(float, input().split()))
print((abs(a[0]-a[2])**2 + abs(a[1]-a[3])**2) ** (1/2))

Solution (Python):
import sys
import itertools



read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

n, m, l, p = map(float, readline().split())

print(((l-n)**2+(p-m)**2)**.5)

Solution (Python):
import math
x1, y1, x2, y2 = map(lambda x: float(x), input().split(" "))
print("{:f}".format(math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)))

Solution (Python):
from math import sqrt

x1, y1, x2, y2 = list(map(float, input().split()))

dist = sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)
print("{:.10f}".format(dist))

Solution (Python):
import math
x1, y1, x2, y2 = map(float,input().split())
print("{0:.8f}".format(math.sqrt((x1-x2)**2 + (y1-y2)**2)))

Solution (Python):
import math
x1, y1, x2, y2 = map(float, input().split())

distance = math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)

print(distance)

Solution (Python):

import sys
import math




tmp = input().split()
x1,y1,x2,y2 = list(map(lambda a: float(a), tmp))

print(math.sqrt((x2-x1)**2+(y2-y1)**2))

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
print( ((x1 - x2)**2.0 + (y1 - y2)**2.0)**0.5 )

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
print(((x1 - x2) ** 2 + (y1 - y2) ** 2) ** 0.5)

Solution (Python):
x1, y1, x2, y2 = map(float, input().split())
print(((x2-x1)**2 + (y2-y1)**2)**(1/2))

Solution (Python):
import math

n = list(map(float,input().split()))

print(math.sqrt((n[2]-n[0])**2 + (n[3]-n[1])**2))

Solution (Python):
x1, y1, x2, y2 = [float(x) for x in input().split()]

print(((x2 - x1) ** 2 + (y2 - y1) ** 2) ** (1 / 2))