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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
lst=input().split()
x=float(lst[0])

Submission status: Wrong Answer

Solution code:
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-x_2)**2+(y_1-y_2)**2)**(1/2)
print(dis)

Submission status: Wrong Answer

Solution code:
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-x_2)**2+(y_1-y_2)**2)**(1/2)
print("{:.8}".format(dis))

Submission status: Wrong Answer

Solution code:
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-x_2)**2+(y_1-y_2)**2)**(1/2)
print("{:.9}".format(dis))

Submission status: Wrong Answer

Solution code:
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-x_2)**2+(y_1-y_2)**2)**(1/2)
print("{:.7}".format(dis))

Submission status: Wrong Answer

Solution code:
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-x_2)**2+(y_1-y_2)**2)**(1/2)
print("{:.5}".format(dis))

Submission status: Wrong Answer

Solution code:
#coding: UTF-8
import math

p = list(map(float, input().split()))
dis = math.sqrt((p[2] - p[0]) + (p[3] - p[1]))

print(dis)

Submission status: Wrong Answer

Solution code:
#coding: UTF-8
import math

p = list(map(float, input().split()))
dis = math.sqrt((abs(p[2]) - abs(p[0])) + (abs(p[3]) - abs(p[1])))

print(dis)

Submission status: Wrong Answer

Solution code:
#coding: UTF-8
import math

p = list(map(float, input().split()))
dis = math.sqrt((abs(p[2]) - abs(p[0])) + (abs(p[3]) - abs(p[1])))

print(round(dis, 8))

Submission status: Wrong Answer

Solution code:
#coding: UTF-8
import math

p = list(map(float, input().split()))
dis = (abs(p[2]) - abs(p[0])) + (abs(p[3]) - abs(p[1]))
# dis = math.sqrt((abs(p[2]) - abs(p[0])) + (abs(p[3]) - abs(p[1])))

print(round(dis, 8))

Submission status: Wrong Answer

Solution code:
#coding: UTF-8
import math

p = list(map(float, input().split()))
dis = math.sqrt(pow((abs(p[2]) - abs(p[0])), 2) + pow((abs(p[3]) - abs(p[1])), 2))

print(round(dis, 8))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
import math

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

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

print line

Submission status: Wrong Answer

Solution code:
x1, y1, x2, y2 = map(float, raw_input().split())
num = (x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)
xi = num
for _ in range(10):
   xi = (xi + (num / xi)) / 2.0
print xi

Submission status: Wrong Answer

Solution code:
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):
        print xi
        xi = (xi + (num / xi)) / 2.0
    print xi

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
from math import *
PI = 3.1415926535898
base = "A"
while True:
    try:
    	a, b, x, y = map(float, raw_input().strip().split(' '))
    	print pow((a-x)*(a-x)+(b-y)*(b-y), 0.5)
    except EOFError:
        break
print base

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python

def sqroot(n):
    x = 1
    for i in range(6):
        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(distance)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python

def sqroot(n):
    x = 1
    for i in range(10):
        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(distance)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env 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(distance)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

def distance(a, b):
    return float('{:.9}'.format(math.sqrt((b[0] - a[0])**2 + (b[1] - a[1])**2)))

if __name__ == '__main__':
    x1, y1, x2, y2 = map(float, input().split())
    print(distance((x1, y1), (x2, y2)))

Submission status: Wrong Answer

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

import math

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# AOJ ITP1_10_A

import math

def floatinput():
    a = input().split()
    for i in range(len(a)):
        a[i] = float(a[i])
    return a

def main():
    data = floatinput()
    x1 = data[0]; y1 = data[1]; x2 = data[2]; y2 = data[3]
    print(math.sqrt((x1 - y1) ** 2 + (x2 - y2) ** 2))

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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  #include<math.h>

x1,y1,x2,y2 = map(float, input().split())
x = abs(x1 - x2)
y = abs(y1 - y2)

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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.0)
print (d)

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):.8f}')

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:
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:
#coding: UTF-8
import math

p = list(map(float, input().split()))
# dis = math.sqrt(pow((abs(p[2]) - abs(p[0])), 2) + pow((abs(p[3]) - abs(p[1])), 2))
dis = math.sqrt(pow((p[2] - p[0]), 2) + pow((p[3]) - (p[1]), 2))

print(round(dis, 8))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
from math import *

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8
#1_10_A 2015.4.10
import math

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

Submission status: Accepted

Solution code:
#coding:utf-8
#1_10_A 2015.4.10
import math

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

(x1,y1,x2,y2) = map(float,raw_input().split())
print math.hypot(x2-x1,y2-y1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

dx = x1 - x2
dy = y1 - y2

d = math.hypot(dx, dy)

print(d)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#encoding=utf-8

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
import math

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

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

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

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

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

Submission status: Accepted

Solution code:
from math import hypot

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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)

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
r = list(map(float, input().split()))
print('{0:f}'.format(((r[2] - r[0]) ** 2 + (r[3] - r[1]) ** 2) ** 0.5))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import hypot

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print L

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

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

    # 2???????????¢????¨????
    result = calc_distance((data[0], data[1]), (data[2], data[3]))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
# coding: utf-8
import math

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import math
x1, y1, x2, y2 = [float(d) for d 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(((x2-x1)**2+(y2-y1)**2)**0.5)

Submission status: Accepted

Solution code:
#coding:utf-8

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

print(distance)

Submission status: Accepted

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

Submission status: Accepted

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

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:
x,y,xx,yy=map(float, input().split())
print('%5f'%((x-xx)**2+(y-yy)**2)**0.5)

Submission status: Accepted

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

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