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



Sample input:
0 0 1 1


Sample output:
1.41421356

Submission status: Accepted

Solution code:
import math
a,b,c,d=(float(x) for x in input().split())

l=(math.sqrt((a-c)*(a-c)+(b-d)*(b-d)))

print('{:.08f}'.format(l))

Submission status: Accepted

Solution code:
import math

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

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

print(f'{x:.08f}')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x1, y1, x2, y2 = map(float, input().split())
A = [x1, y1]
B = [x2, y2]
dict = sum((a - b) ** 2 for a, b in zip(A, B))
print("{:.8f}".format(dict ** 0.5))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c,d = map(float,input().split())
x = a-c
y = b-d
from math import sqrt
res = sqrt(x**2+y**2)
print('{0:.6f}'.format(res))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import sqrt

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

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

Submission status: Accepted

Solution code:
val=list(map(float,input().split()))
if(val[0]>val[2]):
    x=(val[0]-val[2])**2
else:
    x=(val[2]-val[0])**2
if(val[1]>val[3]):
    y=(val[1]-val[3])**2
else:
    y=(val[3]-val[1])**2
    
length=(x+y)**0.5
print(length)

Submission status: Accepted

Solution code:
A,B,C,D=map(float,input().split())
E=(C-A)**2

F=(D-B)**2

print((float)(E+F)**(1/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input().split()

z = ((float(N[0])-float(N[2]))**2)+((float(N[1])-float(N[3]))**2)
ans = z**0.5
print('{:.08f}'.format(ans))

Submission status: Accepted

Solution code:
#(63)距離
import math
x1,y1,x2,y2=map(float,input().split())
a=abs(x2-x1)
b=abs(y2-y1)
c=math.sqrt(a**2+b**2)
print('{:.8f}'.format(c))

Submission status: Accepted

Solution code:
import math

x1,y1,x2,y2 = (float(x) for x in input().split())
print(round(math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2), 8))

Submission status: Accepted

Solution code:
#
# 10a
#
import math


def main():
    x1, y1, x2, y2 = map(float, input().split())
    ret = math.sqrt(pow(x1-x2, 2) + pow(y1-y2, 2))
    print(f"{ret: .8f}")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

x=x1-x2
y=y1-y2

h=x**2+y**2

print(h**0.5)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from enum import Enum

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(d)

Submission status: Accepted

Solution code:
import math
L=list(map(float,input().split()))
A=(L[0]-L[2])*(L[0]-L[2])
B=(L[1]-L[3])*(L[1]-L[3])
V=math.sqrt(A+B)
print(round(V,8))

Submission status: Accepted

Solution code:
import math

x1, y1, x2, y2 = list(map(float, input().split()))
x = x2 - x1
y = y2 - y1
ans = math.sqrt(pow(x, 2) + pow(y, 2))

print(ans)

Submission status: Accepted

Solution code:
import math
x1,y1,x2,y2=(float(x) for x in input().split())
print('{:.05f}'.format(math.sqrt((x2-x1)**2+(y2-y1)**2)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
a,b,c,d=map(float,input().split())
x=math.sqrt((a-c)**2 + (b-d)**2)
print(round(x,8))
 #round(f,6)でfを小数点以下6桁にまとめる。

Submission status: Accepted

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

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

print(n1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
a,b,c,d=map(float,input().split())

x=abs(c-a)
y=x**2

z=abs(d-b)
w=z**2
t=math.sqrt(y+w)

print(f'{t:.8f}')

Submission status: Accepted

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

Submission status: Accepted

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

z=((x1-x2)**2+(y1-y2)**2)**0.5
print("{0:.5f}".format(z))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x, y, p, q = map(float, input().split())
ans = ((p-x)**2 + (q-y)**2)**0.5
print(f"{ans:.8f}")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
a,aa,b,bb=map(float,input().split())
A=(math.sqrt(abs(a-b)**2+abs(aa-bb)**2))
print(A)

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

x = abs(x2 - x1)
y = abs(y2 - y1)

dis = (x ** 2 + y ** 2) ** (1 / 2)
dis = round(dis, 8)

print("{}" .format(dis))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
num=list(map(float,input().split(" ")))
x,y=math.fabs(num[0]-num[2]),math.fabs(num[1]-num[3])
ans=math.sqrt(x**2+y**2)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

x1, y1, x2, y2 = map(float,input().split())
x = (x2 - x1)
y = (y2 - y1)
s = (x*x + y*y)**(1/2)
print(s)

Submission status: Accepted

Solution code:

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

apple = ((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2))**0.5

print('{:.5f}'.format(apple))

Submission status: Accepted

Solution code:
import math
a,b,c,d=map(float,input().split())

x=abs(c-a)
y=x**2

z=abs(d-b)
w=z**2
t=math.sqrt(y+w)

print(f'{t:8f}')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

x1,y1,x2,y2=map(float,input().split())
x=x2-x1
y=y2-y1
a=x*x+y*y
print("{:10f}".format(math.sqrt(a)))

Submission status: Accepted

Solution code:
import math
x1,y1,x2,y2 = map(float, input().split())
a1 = (x2-x1)**2
a2 = (x1-x2)**2
b1 = (y2-y1)**2
b2 = (y1-y2)**2
if x1<x2:
    if y1<y2:
        print(math.sqrt(a1+b1))
    else:
        print(math.sqrt(a1+b2))
else:
    if y1<y2:
        print(math.sqrt(a2+b1))
    else:
        print(math.sqrt(a2+b2))

Submission status: Accepted

Solution code:
import math

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

a = abs(x1-x2)
b = abs(y1-y2)

ans = math.sqrt(a**2 + b**2)

print('{:.9f}'.format(ans))

Submission status: Accepted

Solution code:
#63 距離

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

a = abs(x1-x2)
b = abs(y1-y2)

import math
ans = math.sqrt(a**2 + b**2)

print('{:.9f}'.format(ans))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

if x1>x2:
    H=x1-x2
else:
    H=x2-x1

if y1>y2:
    W=y1-y2
else:
    W=y2-y1
    
a=math.sqrt(H**2+W**2)

print(a)

Submission status: Accepted

Solution code:
a,b,c,d=map(float,input().split())
k=((c-a)*(c-a)+(d-b)*(d-b))**(1/2)
print('{:8f}'.format(k))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x1,y1,x2,y2=map(float,input().split())
if x1<=x2:
    x=x2-x1
else:
    x=x1-x2

if y1<=y2:
    y=y2-y1
else:
    y=y1-y2
    
t=x**2+y**2
t1=t**(1/2)
print(f'{t1:10.8f}')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

print(double_distance)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

dis = math.sqrt(dis2)
print('{:.8f}'.format(dis))

Submission status: Accepted

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

import math
x=(x_2-x_1)**2
y=(y_2-y_1)**2

l=math.sqrt(x+y)
print('{:.16g}'.format(l))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
from decimal import Decimal, ROUND_HALF_UP


def resolve():
    x1, y1, x2, y2 = map(float, input().split())
    a = Decimal(math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)).quantize(Decimal('0.0001'), rounding=ROUND_HALF_UP)
    print(a)


resolve()

Submission status: Accepted

Solution code:
def dist(x1, y1, x2, y2):
    return ((x2 - x1)**2 + (y2 - y1)**2) ** 0.5

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,y,p,q=map(float,input().split())
print(((x-p)**2+(y-q)**2)**(1/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
x1, y1, x2, y2 = map(float, input().split())
x = abs(x1 - x2)
y = abs(y1 - y2)
xx = x ** 2
yy = y ** 2
zz = xx + yy
z = math.sqrt(zz)
print(round(z, 8))

Submission status: Accepted

Solution code:
import math

buf = input().split()

x1 = float(buf[0])
y1 = float(buf[1])
x2 = float(buf[2])
y2 = float(buf[3])

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

print(dis)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#-*-coding:utf-8-*-

from decimal import Decimal
import math

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

if __name__=="__main__":
    main()

Submission status: Accepted

Solution code:
#(63)距離
import math
x1,y1,x2,y2=map(float,input().split())
a=abs(x2-x1)
b=abs(y2-y1)
c=math.sqrt(a**2+b**2)
print('{:.8f}'.format(c))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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}')

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

Solution code:
import math

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

# https://en.wikipedia.org/wiki/Euclidean_distance
dx = x1 - x2
dy = y1 - y2
print(math.sqrt(dx ** 2 + dy ** 2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math


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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import sqrt, pow

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

Submission status: Accepted

Solution code:
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}')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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}"))

Submission status: Accepted

Solution code:
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}')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
from sys import stdin
import math
# 0 0 1 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(y)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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}')

Submission status: Accepted

Solution code:
# coding: utf-8
# 63
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))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

Submission status: Accepted

Solution code:
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'))

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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}")

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
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)

Submission status: Accepted

Solution code:
import math

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

print(dist)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

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

print(dis)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
#1_10_A
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)))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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