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
coordinate_values = input().split()
values = []
for coordinate_value in coordinate_values:
    values.append(float(coordinate_value))
distance = math.sqrt((values[2] - values[0])**2 + (values[3] - values[1])**2)
print("{:.8f}".format(distance))

Submission status: Accepted

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

S=((N[0]-N[2])**2+(N[1]-N[3])**2)**0.5
print(S)

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:
#!/usr/bin/env python

import math

if __name__ == '__main__':
    x1, y1, x2, y2 = map(float, raw_input().split())
    print math.sqrt((x1-x2)**2 + (y1-y2)**2)

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

Submission status: Accepted

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

Submission status: Runtime Error

Solution code:
from math import sqrt
def main():

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

if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
x_1,y_1,x_2,y_2 = int(input().split(" "))

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
lst=input().split()
lst_i=list(map(lambda i : int(i),lst))
x_1=lst_i[0]
y_1=lst_i[1]
x_2=lst_i[2]
y_2=lst_i[3]
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)

Submission status: Runtime Error

Solution code:
lst=input().split()
x_1=int(lst[0])
y_1=int(lst[1])
x_2=int(lst[2])
y_2=int(lst[3])
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)

Submission status: Runtime Error

Solution code:
lst=input().split()
x_1=lst[0]
y_1=int(lst[1])
x_2=int(lst[2])
y_2=int(lst[3])
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)

Submission status: Runtime Error

Solution code:
lst=input().split()
x_1=lst[0]
y_1=lst[1]
x_2=lst[2]
y_2=lst[3]
dis=((x_1-y_1)**2+(x_2-y_2)**2)**(1/2)
print(dis)

Submission status: Runtime Error

Solution code:
lst=input().split()
x_1=int(lst[0])
y_1=int(lst[1])
x_2=int(lst[2])
y_2=int(lst[3])
dis=((x_1-x_2)**2+(y_1-y_2)**2)**(1/2)
print(dis)

Submission status: Runtime Error

Solution code:
lst=input().split()
x_1=lst[0]
y_1=lst[1]
x_2=lst[2]
y_2=lst[3]
dis=((x_1-x_2)**2+(y_1-y_2)**2)**(1/2)
print(dis)

Submission status: Runtime Error

Solution code:
lst=input().split()
lst=list(map(lambda i:int(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: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
import math

x1,y1,x2,y2 = map(int,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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

import math

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#coding: UTF-8
import math

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

print(dis)

Submission status: Runtime Error

Solution code:
#coding: UTF-8
import math

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

print(round(dis, 8))

Submission status: Runtime Error

Solution code:
import math

class Point():

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

x1, y1, x2, y2 = [int(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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
x1,y1,x2,y2 = map(int,raw_input().split(' '))
x = abs(x1 - x2);
y = abs(y1 - y2);
a = y/math.sin(math.radians(45))
print a

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from math import *

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

Submission status: Runtime Error

Solution code:
import math

(x1, y1, x2, y2) = int(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: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# coding=utf-8

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

Submission status: Runtime Error

Solution code:
import math

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

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

print line

Submission status: Runtime Error

Solution code:
import math

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

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

print line

Submission status: Runtime Error

Solution code:
using namespace std;
 
int main()
{
  double x1, x2, y1, y2;
 
  cin >> x1 >> y1 >> x2 >> y2;
 
  cout << fixed << setprecision(6) << sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)) << endl;
   
  return 0;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x1, y1, x2, y2 = map(int, 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: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math

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

dx = x1 - x2
dy = y1 - y2

d = math.hypot(dx, dy)

print(d)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from math import *
PI = 3.1415926535898
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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math

point = map(int, 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: Runtime Error

Solution code:
import math

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math

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

tei  = x2 - x1
taka = y2 - 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: Runtime Error

Solution code:
#!/usr/bin/env python
#coding: UTF-8
import math

line = []
for l in open('text.txt', 'r'):
    for i in l.split(' '):
    	line.append(float(i))
a = (line[0]-line[2])**2+(line[1]-line[3])**2
print math.sqrt(a)

Submission status: Runtime Error

Solution code:
import sys
import math

line = []
for l in sys.stdin:
    for i in l.split(' '):
    	line.append(float(i))
a = (line[0]-line[2])**2+(line[1]-line[3])**2
print math.sqrt(a)

Submission status: Runtime Error

Solution code:
import sys
import math

line = []
for l in sys.stdin:
    for i in l.split(' '):
    	line.append(float(i))
a = (line[0]-line[2])**2+(line[1]-line[3])**2
b = math.sqrt(a)
print ('%.10f' % b)

Submission status: Runtime Error

Solution code:
import sys
import math

line = []
for l in sys.stdin:
    for i in l.split(' '):
    	line.append(float(i))
a = (line[0]-line[2])**2+(line[1]-line[3])**2
b = math.sqrt(a)
print ('%.20f' % b)

Submission status: Runtime Error

Solution code:
import sys
import math

line = []
for l in sys.stdin:
    for i in l.split(' '):
    	line.append(float(i))
a = (line[0]-line[2])**2+(line[1]-line[3])**2
b = math.sqrt(a)
print ('%.12f' % b)

Submission status: Runtime Error

Solution code:
import sys
import math

line = []
for l in sys.stdin:
    for i in l.split(' '):
    	line.append(float(i))
a = (line[0]-line[2])**2+(line[1]-line[3])**2
b = math.sqrt(a)
print ('%.4f' % b)

Submission status: Runtime Error

Solution code:
import sys
import math

line = []
for l in sys.stdin:
    for i in l.split(' '):
    	line.append(float(i))
a = (line[0]-line[2])**2+(line[1]-line[3])**2
b = math.sqrt(a)
print ('%03.4f' % b)

Submission status: Runtime Error

Solution code:
from math import sqrt

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

Submission status: Runtime Error

Solution code:
#encoding=utf-8

import sys
import math

printf = sys.stdout.write

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
#coding: UTF-8
import sys
import math

line = []
for l in sys.stdin:
    for i in l.split(' '):
    	line.append(float(i))
print math.sqrt((line[0]-line[2])**2+(line[1]-line[3])**2)

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
#coding: UTF-8
import sys
import math

line = []
for l in sys.stdin:
    for i in l.split(' '):
    	line.append(float(i))
a = math.sqrt((line[0]-line[2])**2+(line[1]-line[3])**2)
print '%06.6f'%a

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
#coding: UTF-8
import sys
import math

line = []
for l in sys.stdin:
    for i in l.split(' '):
    	line.append(float(i))
a = math.sqrt((line[0]-line[2])**2+(line[1]-line[3])**2)
print '%06.20f'%a

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
#coding: UTF-8
import sys
import math

line = []
for l in sys.stdin:
    for i in l.split(' '):
    	line.append(float(i))
a = math.sqrt((line[0]-line[2])**2+(line[1]-line[3])**2)
print '%.12f'%a

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
#coding: UTF-8
import sys
import math

line = []
for l in sys.stdin:
    for i in l.split(' '):
    	line.append(float(i))
a = math.sqrt((line[0]-line[2])**2+(line[1]-line[3])**2)
print '%f'%a

Submission status: Runtime Error

Solution code:
import math

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

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

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

Submission status: Runtime Error

Solution code:

x1, y1, x2, y2 = (int(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: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# coding: utf-8
import math
x1,y1,x2,y2 = input().split()

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

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

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

Solution code:
import math

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

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

Submission status: Runtime Error

Solution code:
import math
import sys

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
a,b,c,d = [int(i) for i in input().split()]

x = (c-a) ** 2
y = (d-b) ** 2

total = (x + y)

a = math.sqrt(total)

print(a)

Submission status: Runtime Error

Solution code:
import math
a,b,c,d = [int(i) for i in input().split()]

x = (c-a) ** 2
y = (d-b) ** 2

total = (x + y)

i = math.sqrt(total)

print(i)

Submission status: Runtime Error

Solution code:
import math
a,b,c,d = [int(i) for i in input().split()]

x = (c-a) ** 2
y = (d-b) ** 2

total = (x + y)

print(math.sqrt(total))

Submission status: Runtime Error

Solution code:
import math

a,b,c,d = [int(i) for i in input().split()]

x = (c-a) ** 2
y = (d-b) ** 2

total = (x + y)

print(int(math.sqrt(total)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

Solution code:
# coding:utf-8
import math

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

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

Submission status: Runtime Error

Solution code:
# coding:utf-8
import math

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

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
x1,y1,x2,y2 = map(int, input().split())
dist = math.sqrt((x2-x1)**2+(y2-y1)**2)
print("%.5f" % (dist))

Submission status: Runtime Error

Solution code:
#coding:utf-8

import math

datas = [int(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: Runtime Error

Solution code:
import numpy as np
x = map(int, (raw_input()).split(" "))

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

Submission status: Runtime Error

Solution code:
import math
x = map(int, (raw_input()).split(" "))

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

Submission status: Runtime Error

Solution code:
'''
ITP-1_10-A
 ?????¢
?????? P1(x1, y1), P2(x2, y2) ????????¢????±???????????????°????????????????????????
???Input
x1, y1, x2, y2 ????????°???????????????????????§?????????????????????
???Output
P1??¨P2????????¢????????°??§?????????????????????????????????0.0001??\????????????????????£????????????????????¨????????????
'''
# # import
# import numpy
# 
# # inputData
# Data = input().split()
# x1 = int(Data[0])
# y1 = int(Data[1])
# x2 = int(Data[2])
# y2 = int(Data[3])
# 
# P1 = numpy.array([x1, y1])
# P2 = numpy.array([x2, y2])
# print(numpy.linalg.norm(P2 - P1))

import math

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
#1st line
pos_x1, pos_y1, pos_x2, pos_y2 = map(int,input().split(" "))

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
x1, y1, x2, y2 = [int(i) for i in input().split()]
print(math.hypot(x1 - x2, y1 - y2))

Submission status: Runtime Error

Solution code:
import math
def calc_distance(x1, y1, x2, y2):

    '''
    :param x1:(float)
    :param y1:(float)
    :param x2:(float)
    :param y2:(float)
    :return: (float) distance between two points
    '''

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



if  __name__ == '__main__':
    x1, y1, x2, y2 = [int(x) for x in input().split(" ")]
    res = calc_distance(x1, y1, x2, y2)
    print(res)

Submission status: Runtime Error

Solution code:
import math
x1, y1, x2, y2 = [int(x) for x in input().split(" ")]

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

import math
import sys


def dist():
    coordinates = [int(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()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b, c, d = [int(temp) for temp in input().split()]
from math import sqrt
print(sqrt((c - a) ** 2 + (d - b) ** 2))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math

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

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

print(math.sqrt(exp_dist))

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

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

print(distance)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x1,y1x2,y2=int(input().split())
print(sqrt((x2-x1)**2+(y2-y1**2)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math

l = [input() for x in range(4)]
dist = math.sqrt(math.fabs(l[0] - l[2])**2 + math.fabs(l[1] - l[3])**2)
print dist

Submission status: Runtime Error

Solution code:
import math

l = [input() for x in range(4)]
dist = math.sqrt((l[0] - l[2])**2 + (l[1] - l[3])**2)
print dist

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
?????¢
"""
import math
x1, y1, x2, y2 = map(int,input().strip().split())
x = x1 - x2
y = y1 - y2

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

print(distance)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
import math

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

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

main()

Submission status: Runtime Error

Solution code:
import math

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

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

Submission status: Runtime Error

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

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

print(d)