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):
from math import sqrt
def main():

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

if __name__ == '__main__':
    main()

Solution (Python):
import math

def main():
    x1, y1, x2, y2 = [float(n) for n in input().split()]

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

    print("{:.5f}".format(d));

if __name__ == '__main__':
    main()

Solution (Python):
a,b,c,d=map(float,input().split())
dx=a-c
dy=b-d
dd=(dx*dx+dy*dy)**.5
print(dd)

Solution (Python):
def main():
    coordinates = list(map(float, input().split()))
    distance = ((coordinates[2] - coordinates[0])**2 + (coordinates[3] - coordinates[1])**2)**(1/2)
    print('{:.5f}'.format(distance))


if __name__ == '__main__':
    main()

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, raw_input().split())
print math.sqrt(pow(x2-x1,2) + pow(y2-y1,2))

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

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):
lst=input().split()
lst=list(map(lambda i:float(i),lst))
x_1=lst[0]
x_2=lst[1]
y_1=lst[2]
y_2=lst[3]
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)

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 = map(float, input().split())
x = abs(x1 - x2)
y = abs(y1 - y2)

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

Solution (Python):
import math

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

x_dis = abs(x1-x2)
y_dis = abs(y1-y2)

hypo = math.sqrt(x_dis**2 + y_dis**2)
dis = round(hypo,8)

print(dis)

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

Solution (Python):
from sys import stdin
from math import sqrt

x1, y1, x2, y2 = [float(x) for x in stdin.readline().rstrip().split()]
print(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' % (((x2 - x1)**2 + (y2 - y1)**2))**0.5)

Solution (Python):



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

Solution (Python):



import math

pos = list(map(float, input().split()))
x = abs(pos[2] - pos[0])
y = abs(pos[3] - pos[1])

print(math.sqrt(x**2 + y**2))

Solution (Python):
import math
n=input().split()
x=float(n[2])-float(n[0])
y=float(n[3])-float(n[1])

print(math.sqrt(x**2+y**2))

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

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

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

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

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):

import math

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

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

print(round(dis, 8))

Solution (Python):
from enum import Enum
import sys
 
BIG_NUM = 2000000000
MOD = 1000000007
EPS = 0.000000001
 
class Point():
    def __init__(self,arg_x,arg_y):
        self.x = arg_x
        self.y = arg_y
 
def calc_len(a,b):
    from math import sqrt
    return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y))
 
x1,y1,x2,y2 = map(float,input().split())
 
p1 = Point(x1,y1)
p2 = Point(x2,y2)
 
print("%.10f"%calc_len(p1,p2))

Solution (Python):
import math

class Point():

    def __init__(self, x, y):
        self.x = x
        self.y = y

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

point1 = Point(x1, y1)
point2 = Point(x2, y2)

x_dist = point1.x - point2.x
y_dist = point1.y - point2.y

dist = math.sqrt(x_dist ** 2 + y_dist ** 2)

print(dist)

Solution (Python):
import math
class Point(object):
    def __init__(self, x, y):
        self.x = x
        self.y = y

def d(p1, p2):
    a = p2.x - p1.x
    b = p2.y - p1.y
    c = math.sqrt(a * a + b * b)
    return(c)

data = [float(i) for i in input().split()]
p1 = Point(data[0], data[1])
p2 = Point(data[2], data[3])
print(d(p1,p2))

Solution (Python):
from math import sqrt

class  Point (object):
    def __init__(self, x, y):
        self.x = x
        self.y = y

def d (p1, p2):
    return sqrt((p1.x - p2.x) ** 2 + (p1.y - p2.y) ** 2)

data = [float(e) for e in input().split()]
p1 = Point(data[0], data[1])
p2 = Point(data[2], data[3])

print(d(p1, p2))

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

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

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

Solution (Python):
import math
p = map(float, raw_input().split())
print("%.10f" %(math.sqrt((p[2] - p[0]) * (p[2] - p[0]) + (p[3] - p[1]) * (p[3] - p[1]))))

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

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

Solution (Python):
import math
x1,y1,x2,y2 = map(float,raw_input().split(' '))
x = abs(x1-x2);
y = abs(y1-y2);
a = math.sqrt(x**2 + y**2) 
print a

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

Solution (Python):
from math import *

x1, y1, x2, y2 = map(float, raw_input().split())
distance = sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2))
print distance

Solution (Python):
import math

(x1, y1, x2, y2) = [float(i) for i in input().split()]
distance = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
print('{0:.5f}'.format(distance))

Solution (Python):
import math

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

distance = math.hypot((x2 - x1), (y2 - y1))
print('{0:.5f}'.format(distance))

Solution (Python):
import math

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

distance = math.hypot((x2 - x1), (y2 - y1))
print('{0:.5f}'.format(distance))

Solution (Python):
import math

(x1, y1, x2, y2) = [float(i) for i in input().split()]
distance = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
print('{0:.5f}'.format(distance))

Solution (Python):
import math

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

distance = math.hypot((x2 - x1), (y2 - y1))
print('{0:.5f}'.format(distance))

Solution (Python):
import sys
import math
(x1, y1, x2, y2) = [float(i) for i in sys.stdin.readline().split()]
d = math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)
print(d)

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

Solution (Python):
import math

if __name__ == '__main__':
    x1, y1, x2, y2 = [float(i) for i in input().split()]
    d = math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)
    print("{0:.5f}".format(d))

Solution (Python):


import math

position = list(map(float,input().split()))
distance = math.sqrt((position[2] - position[0]) ** 2 + (position[3] - position[1]) ** 2)
print('{:.5f}'.format(distance))

Solution (Python):


import math

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

Solution (Python):


import math

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

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

Solution (Python):
import math

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

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):
x1, y1, x2, y2 = map(float, input().split())
print(((x1 - x2) ** 2 + (y1 - y2) ** 2) ** 0.5)

Solution (Python):

from math import sqrt
x1, y1, x2, y2 = map(float, raw_input().split())
print sqrt((x1 - x2) ** 2 + (y1 - y2) ** 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,raw_input().split())
print math.hypot(x2-x1,y2-y1)

Solution (Python):
import math
x,y,a,b=map(float, raw_input().split())
print math.sqrt((a-x)**2+(b-y)**2)

Solution (Python):
import math

input = map(float, raw_input().split(" "))
print math.pow((input[0] - input[2]) ** 2 + (input[1] - input[3]) ** 2, 0.5)

Solution (Python):
from math import hypot
 
x1, y1, x2, y2 = map(float, input().strip().split())
print(hypot(x2 - x1, y2 - y1))

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

Solution (Python):
x1, y1, x2, y2 = map(float, raw_input().split())
num = (x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)
if num == 0:
    print 0
else:
    xi = num
    for _ in range(100):
        xi = (xi + (num / xi)) / 2.0
    print xi

Solution (Python):
import math

x_1,y_1,x_2,y_2 =map(float,raw_input().split())
print (math.sqrt(math.pow(x_2-x_1,2)+math.pow(y_2-y_1,2)))

Solution (Python):
import math

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

dx = x1 - x2
dy = y1 - y2

d = math.hypot(dx, dy)

print(d)

Solution (Python):
import math
p = raw_input().split()
x = math.fabs(float(p[0]) - float(p[2]))
y = math.fabs(float(p[1]) - float(p[3]))
print '%.8f' % math.sqrt(x**2 + y**2)

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

Solution (Python):
from math import *
PI = 3.1415926535898
while True:
    try:
    	k = raw_input()
    	if len(k) > 0:
	    	a, b, x, y = map(float, k.strip().split(' '))
	    	print pow((a-x)*(a-x)+(b-y)*(b-y), 0.5)
    except EOFError:
        break

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

Solution (Python):
import math

point = map(float, raw_input().split())
x1 = point[0]
y1 = point[1]
x2 = point[2]
y2 = point[3]

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

Solution (Python):
import math

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

Solution (Python):
import math

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

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

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

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):
import math

x1,y1,x2,y2 = raw_input().split()

tei  = float(x2) - float(x1)
taka = float(y2) - float(y1)

if tei == taka:
    st = math.sqrt(2)
    answ = st * tei
    print answ
if tei != taka:
    answ = (tei*tei) + (taka*taka)
    print math.sqrt(answ)

Solution (Python):
from math import sqrt

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

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

Solution (Python):


import sys
import math

printf = sys.stdout.write

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

X = x2 - x1
Y = y2 - y1
printf(str(math.sqrt(X**2 + Y**2)))

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

Solution (Python):

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

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

Solution (Python):
import math

x1,y1,x2,y2 = map(float,raw_input().split())
a = math.sqrt((x1-x2)**2+(y1-y2)**2)
print '%f'%a

Solution (Python):


import math

x1, y1, x2, y2 = map(float, raw_input().split())
dx = x2-x1
dy = y2-y1
print math.sqrt(dx*dx+dy*dy)

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

Solution (Python):
import math

data =map(float, raw_input().split(" "))

dx = data[2] - data[0]
dy = data[3] - data[1]

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

Solution (Python):

import math

z = raw_input()
x1, y1, x2, y2 = z.split()
x1 = float(x1)
x2 = float(x2)
y1 = float(y1)
y2 = float(y2)

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

print ("%lf" %(d))

Solution (Python):
import math

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

print math.sqrt(math.pow(x2-x1,2)+math.pow(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):
import math

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

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

Solution (Python):
from math import hypot

x1, y1, x2, y2 = map(float, input().strip().split())
print(hypot(x2 - x1, y2 -y1))

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

Solution (Python):

x1, y1, x2, y2 = (float(i) for i in input().split())
x_range = x2 - x1
y_range = y2 - y1

distance = pow(pow(x_range, 2) + pow(y_range, 2), 1/2)

print(distance)

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 sys
import math

def str_input():
    S = raw_input()
    if S[len(S)-1] == "\r":
        return S[:len(S)-1]
    return S

def float_to_str(num):
    return str("{:.10f}".format(num))

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

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

Solution (Python):
import math

x1,y1,x2,y2 = map(float,input().split())
print(math.fabs(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
x_1,y_1,x_2,y_2=map(float,raw_input().split(" "))
print sqrt((x_1-x_2)**2 + (y_1-y_2)**2)

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

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

Solution (Python):

import math
x1,y1,x2,y2 = input().split()

X = float(x2) - float(x1)
Y = float(y2) - float(y1)

length = math.sqrt( X**2 + Y**2 )
print(length)

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

x_d = x2 - x1
y_d = y2 - y1
print("%0.5f" % math.sqrt(x_d**2 + y_d**2))

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

x, y, X, Y = [float(i) for i in input().split()]
print(math.sqrt((x-X)**2 + abs(y-Y)**2))

Solution (Python):
import math

x, y, X, Y = [float(i) for i in input().split()]
print(math.sqrt((x-X)**2 + (y-Y)**2))

Solution (Python):
import math

x, y, X, Y = [float(i) for i in input().split()]

print (math.sqrt((x-X)**2+(y-Y)**2))

Solution (Python):
import math
import sys

x1, y1, x2, y2 = [float(x) for x in sys.stdin.readline().split()]
print(math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2))

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):
r = list(map(float, input().split()))
print('{0:f}'.format(((r[2] - r[0]) ** 2 + (r[3] - r[1]) ** 2) ** 0.5))

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

Solution (Python):
from math import hypot

a, b, c, d = map(float, input().split())
e = hypot((a-c), (b-d))
print(e)

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

Solution (Python):
import math

x,y,X,Y = [float(i) for i in input().split()]
print(math.sqrt((x-X)**2 + (y-Y)**2))

Solution (Python):
import math

point =list(map(float, input().split()))
p1 = point[0]
p2 = point[1]
p3 = point[2]
p4 = point[3]

l = math.sqrt((p3 - p1)**2 + (p4 - p2)**2)

print(l)

Solution (Python):
import math
x1,y1,x2,y2 = map(float, input().split())
print('{0: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((x1-x2)**2 + (y1-y2)**2)
print(d)

Solution (Python):
import math

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

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

print L

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

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

X = (x2 - x1)**2
Y = (y2 - y1)**2

distance = (X + Y)**(1/2)
print("%.8f" % (float(distance)))

Solution (Python):

import math

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

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

Solution (Python):
import math

[x1, y1, x2, y2] = [float(x) for x in raw_input().split()]
print(math.sqrt((x2 - x1) ** 2.0 + (y2 - y1) ** 2.0))

Solution (Python):
def calc_distance(p1, p2):
    from math import sqrt
    x1, y1 = p1
    x2, y2 = p2
    return sqrt((x2 - x1)**2 + (y2 - y1)**2)


if __name__ == '__main__':
    
    data = [float(x) for x in input().split(' ')]

    
    result = calc_distance((data[0], data[1]), (data[2], data[3]))

    
    print('{0:.8f}'.format(result))

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

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

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

Solution (Python):
from math import sqrt,pow
x1,y1,x2,y2=map(float,input().split())
print("{0}".format(sqrt(pow(x2-x1,2)+pow(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())
d = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)

print("{:.6f}".format(d))

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

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

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())
dist = math.sqrt((x2-x1)**2+(y2-y1)**2)
print("%.6f" % (dist))

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

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

Solution (Python):


import math

datas = [float(x) for x in input().split()]
p1 = (datas[0], datas[1])
p2 = (datas[2], datas[3])

print(math.sqrt(math.pow(p1[0]-p2[0], 2)+math.pow(p1[1]-p2[1],2)))

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

Solution (Python):
import math

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

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

print(distance)

Solution (Python):
import math
x = map(float, (raw_input()).split(" "))

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

Solution (Python):
import math

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

bottom = x2 - x1
height = y2 - y1

print(math.sqrt(bottom**2 + height**2))

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

Solution (Python):
x,y,xx,yy=map(float, input().split())
print('%5f'%((x-xx)**2+(y-yy)**2)**0.5)

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

print sqrt(pow(x2 - x1,2) + pow(y2 - y1,2))

Solution (Python):
'''
ITP-1_10-A
 ?????¢
?????? P1(x1, y1), P2(x2, y2) ????????¢????±???????????????°????????????????????????
???Input
x1, y1, x2, y2 ????????°???????????????????????§?????????????????????
???Output
P1??¨P2????????¢????????°??§?????????????????????????????????0.0001??\????????????????????£????????????????????¨????????????
'''














import math

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

if __name__ == '__main__':
    
    Data = input().split()
    x1 = float(Data[0])
    y1 = float(Data[1])
    x2 = float(Data[2])
    y2 = float(Data[3])

    d = get_distance(x1, y1, x2, y2)
    print(d)

Solution (Python):
import sys
import math

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


fin = sys.stdin

[x1, y1, x2, y2] = list(map(float, fin.readline().split()))

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

Solution (Python):
import math
 
x1,y1,x2,y2=list(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())

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

print(D)

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

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

Solution (Python):
import math

pos_x1, pos_y1, pos_x2, pos_y2 = map(float,input().split(" "))

dist = math.sqrt((pos_x1-pos_x2)**2 + (pos_y1 - pos_y2)**2)
print(str(dist))

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
a,b,c,d = map(float,input().split())
print(sqrt((c-a)**2+(d-b)**2))

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

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

print('%.4f'% l)

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

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

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

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

Solution (Python):


import math
import sys


def dist():
    coordinates = [float(num) for num in sys.stdin.readline().split()]
    return math.hypot(coordinates[2]-coordinates[0],
                      coordinates[3]-coordinates[1])


def main():
    print(dist())


if __name__ == '__main__':
    main()

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

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

Solution (Python):
a, b, c, d = [float(temp) for temp in input().split()]
from math import sqrt
dis = sqrt((c - a) ** 2 + (d - b) ** 2)
print('%0.5f'%dis)

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

Solution (Python):


import sys
import os
import math


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

Solution (Python):
import math

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

exp_dist = abs(x1 - x2)**2 + abs(y1 - y2)**2

print(math.sqrt(exp_dist))

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):
import math

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

Solution (Python):


import sys
import collections
import math
import unittest

def calculate_distance():
    try:
        [x1, y1, x2, y2] = [float(value) for value in input().rstrip().split()]
    except:
        __input_error()
    
    print(math.hypot(x1-x2, y1-y2))

def __input_error():
    print("input error")
    return -1

class __TestValueClass(unittest.TestCase):
    def testEqual(self,func,tuples):
        self.testFunction(self.assertEqual,func,tuples)
    
    def testFunction(self,assertfunc,func,tuples):
        
        for item in tuples:
            try:
                if isinstance(item[0], collections.Iterable):
                    assertfunc(func(*item[0]),item[1])
                else:
                    assertfunc(func(item[0]),item[1])
            except Exception as msg:
                swidth = 15
                print("="*50)
                print("-- Assertion Error in '" + func.__name__ + "' --")
                print("arguments".ljust(swidth)+":",item[0])
                print("compared value".ljust(swidth)+":",item[1])
                print("message".ljust(swidth)+":")
                print(msg)
                sys.exit()
        print(func.__name__,": succeeded")
        

if __name__ == "__main__" :

    calculate_distance()

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

Solution (Python):


def sqroot(n):
    x = 1
    for i in range(100):
        x = (x + n/x)/2
    return x

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

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

print("%.8f" % distance)

Solution (Python):

x1,y1,x2,y2 = input().split(" ")
x1=float(x1)
y1=float(y1)
x2=float(x2)
y2=float(y2)
print ( ((x1-x2)**2.0 + (y1-y2)**2.0 )**0.5)

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

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

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):
import math
x1,y1,x2,y2 =map(float, input().split())

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

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())
print(math.sqrt((x2 - x1)**2 + (y2 - y1)**2))

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

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

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

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

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

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

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

Solution (Python):
import math

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

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

Solution (Python):
import math

l = map(float, raw_input().split())
dist = math.sqrt((l[0] - l[2])**2 + (l[1] - l[3])**2)
print dist

Solution (Python):


"""
?????¢
"""
import math
x1, y1, x2, y2 = map(float,input().strip().split())
x = x1 - x2
y = y1 - y2

distance = math.sqrt(x * x + y * y)

print(distance)

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

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

Solution (Python):
import math

def main():
    X1, Y1, X2, Y2 = map(float, input().split())

    dist = math.sqrt((X2 - X1) ** 2 + (Y2 - Y1) ** 2)
    print(dist)

main()

Solution (Python):
import math

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

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

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

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

print(d)

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

result = x**2 + y**2
print(math.sqrt(result))

Solution (Python):
import math

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

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

Solution (Python):
import math

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

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

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

Solution (Python):


import sys, math, os


PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


x1, y1, x2, y2 = [float(_) for _ in input().split()]
print("%.8f" % math.sqrt((x1 - x2)**2 + (y1 - y2)**2))

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

Solution (Python):
x=list(map(float,input().split()))
x1,y1,x2,y2=x[0],x[1],x[2],x[3]
print(((x1-x2)**2 + (y1-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):
a,b,c,d=map(float,input().split())
z=((a-c)**2+(b-d)**2)**(1/2)
print(z)

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 math
x1, y1, x2, y2 = map(float, input().split())
distance = math.sqrt((x2-x1)**2 + (y2-y1)**2)
print(distance)

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

Solution (Python):
from math import hypot

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

print("{:.8f}".format(hypot(x2-x1, y2-y1)))