buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { const double PI = acos(-1); double a, b, C, rad; cin >> a >> b >> C; rad = C * PI / 180; cout << fixed; cout << setprecision(6) << a * b * sin(rad) / 2 << endl << a + b + sqrt(a * a + b * b - 2 * a * b * cos(ra...
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { const double PI = acos(-1); double a, b, C, rad; cin >> a >> b >> C; rad = C * PI / 180; cout << fixed; cout << setprecision(6) << a * b * sin(rad) / 2 << endl << a + b + sqrt(a * a + b * b - 2 * a * b * cos(ra...
[["-", 12, 16, 31, 16, 31, 16, 31, 16, 31, 13], ["-", 12, 16, 31, 16, 31, 16, 31, 16, 17, 48]]
1
120
#include <bits/stdc++.h> using namespace std; int pai = 3.14159265; int main() { cout << fixed << setprecision(8); double a, b, C; cin >> a >> b >> C; C = C / 180 * pai; double S, L, h; S = a * b * sin(C) / 2; double c = sqrt(pow(a, 2) + pow(b, 2) - 2 * a * b * cos(C)); L = a + b + c; h = S * 2 / a; ...
#include <bits/stdc++.h> using namespace std; double pai = 3.14159265; int main() { cout << fixed << setprecision(8); double a, b, C; cin >> a >> b >> C; C = C / 180 * pai; double S, L, h; S = a * b * sin(C) / 2; double c = sqrt(pow(a, 2) + pow(b, 2) - 2 * a * b * cos(C)); L = a + b + c; h = S * 2 / ...
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40]]
1
131
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double PI = acos(-1); double rad, a, b, C, S, L, h; cout << fixed << setprecision(12); cin >> a >> b >> C; rad = C * PI / 180; S = a * b * sin(rad) / 2; cout << S << endl; C = sqrt(pow(a, 2) + pow(b, 2) - (2 * a ...
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double PI = acos(-1); double rad, a, b, C, S, L, h; cout << fixed << setprecision(12); cin >> a >> b >> C; rad = C * PI / 180; S = a * b * sin(rad) / 2; cout << S << endl; C = sqrt(pow(a, 2) + pow(b, 2) - (2 * a ...
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22]]
1
147
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double a, b, C; cin >> a >> b >> C; double r = C * M_PI / 180; cout << fixed << setprecision(8) << a * b * sin(r) / 2 << endl << sqrt(a * a * b * b - 2 * a * b * cos(r)) << endl << b * sin(r) << endl; re...
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double a, b, C; cin >> a >> b >> C; double r = C * M_PI / 180; cout << fixed << setprecision(8) << a * b * sin(r) / 2 << endl << a + b + sqrt(a * a + b * b - 2 * a * b * cos(r)) << endl << b * sin(r) << end...
[["+", 31, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 17, 72], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["-", 3, 4, 0, 16, 31, 16, 31, 16, 17, 48], ["+", 12, 2, 3, 4, 0, 16, 31, 16, 17, 72]]
1
98
#include <bits/stdc++.h> #include <cmath> #include <iomanip> #include <iostream> #include <string> using namespace std; int main(void) { // Your code here! long double a, b, c, d, e, f, g; string A; cin >> a >> b >> c; c = c * acos(-1) / 180; e = (a * b * sin(c)) / 2; f = sqrt(pow(a, 2) + pow(b, 2) - 2 * ...
#include <bits/stdc++.h> #include <cmath> #include <iomanip> #include <iostream> #include <string> using namespace std; int main(void) { // Your code here! long double a, b, c, d, e, f, g; string A; cin >> a >> b >> c; c = c * acos(-1) / 180; e = (a * b * sin(c)) / 2; f = sqrt(pow(a, 2) + pow(b, 2) - 2 * ...
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13]]
1
156
#include <algorithm> #include <iomanip> #include <iostream> #include <stdio.h> #define _USE_MATH_DEFINES #include <cctype> #include <cstdlib> #include <cstring> #include <map> #include <math.h> #include <string> using namespace std; int main() { cout << setprecision(6); cout << setiosflags(ios::scientific); cout...
#include <algorithm> #include <iomanip> #include <iostream> #include <stdio.h> #define _USE_MATH_DEFINES #include <cctype> #include <cstdlib> #include <cstring> #include <map> #include <math.h> #include <string> using namespace std; int main() { cout << setprecision(6); cout << setiosflags(ios::scientific); cout...
[["-", 3, 4, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 3, 4, 0, 16, 31, 16, 12, 16, 31, 22], ["-", 3, 4, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 3, 4, 0, 16, 31, 16, 12, 16, 12, 22], ["-", 3, 4, 0, 16, 12, 16, 31, 16, 12, 22], ["+", 3, 4, 0, 16, 12, 16, 31, 16, 12, 22]]
1
156
#include <cmath> #include <iomanip> #include <iostream> const double PI = 4 * atan(1); int main() { double a, b, c, rad_C, S, L, h; int deg_C; std::cin >> a >> b >> deg_C; rad_C = deg_C * PI / 180; S = a * b * sin(rad_C) / 2; c = sqrt(a * a + b * b - 2 * a * b * cos(rad_C)); L = a + b + c; h = S / c; ...
#include <cmath> #include <iomanip> #include <iostream> const double PI = 4 * atan(1); int main() { double a, b, c, rad_C, S, L, h; int deg_C; std::cin >> a >> b >> deg_C; rad_C = deg_C * PI / 180; S = a * b * sin(rad_C) / 2; c = sqrt(a * a + b * b - 2 * a * b * cos(rad_C)); L = a + b + c; h = 2 * S /...
[["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]]
1
139
#include <cmath> #include <cstdio> #include <iostream> #include <string> using namespace std; int main() { int a, b, C; cin >> a >> b >> C; double S, L, h, rad; rad = C * M_PI / 180.0; S = a * b * sin(rad) / 2; L = a + b + sqrt(a * a + b * b + 2 * a * b * cos(rad)); h = b * sin(rad); printf("%.8lf\n...
#include <cmath> #include <cstdio> #include <iostream> #include <string> using namespace std; int main() { int a, b, C; cin >> a >> b >> C; double S, L, h, rad; rad = C * M_PI / 180.0; S = a * b * sin(rad) / 2; L = a + b + sqrt(a * a + b * b - 2 * a * b * cos(rad)); h = b * sin(rad); printf("%.8lf\n...
[["-", 12, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 12, 16, 12, 2, 3, 4, 0, 16, 17, 33]]
1
133
#include <cmath> #include <cstdio> #include <iostream> using namespace std; double S(int x, int y, double z) { return x * y * sin(z / 180 * M_PI) / 2; } double res1(int x, int y, double z) { return sqrt(x * x + y * y - 2 * x * y * cos(z / 180 * M_PI)); } double L(int x, int y, int z) { return x + y + z; } double...
#include <cmath> #include <cstdio> #include <iostream> using namespace std; double S(int x, int y, double z) { return x * y * sin(z / 180 * M_PI) / 2; } double res1(int x, int y, double z) { return sqrt(x * x + y * y - 2 * x * y * cos(z / 180 * M_PI)); } double L(int x, int y, double z) { return x + y + z; } dou...
[["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40]]
1
213
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)
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)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
64
x1, y1, x2, y2 = map(int, input().split()) print('%.8f' % (((x2 - x1)**2 + (y2 - y1)**2))**0.5)
x1, y1, x2, y2 = map(float, input().split()) print('%.8f' % (((x2 - x1)**2 + (y2 - y1)**2))**0.5)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
48
# 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)
# 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)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
58
# -*- 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))
# -*- 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))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
64
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))
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))
[["-", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22]]
5
60
import math x1,y1,x2,y2 = (float(x) for x in input().split()) d = math.sqrt((x2 - x1)^2 + (y2 - y1)^2) print (d)
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)
[["-", 12, 652, 3, 4, 0, 657, 31, 657, 17, 140], ["+", 12, 652, 3, 4, 0, 657, 31, 657, 17, 578], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 140], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 12, 612], ["+", 12, 652, 3, 4, 0, 657, 12, 657, 17, 578], ["+", 12, 652, 3, 4, 0, 657, 12, 657, 12, 531]]
5
52
import math x1, y1, x2, y2 = map(int, input().split()) print(f'{math.sqrt((x2-x1)**2+(y2-y1)**2):.8f}')
import math x1, y1, x2, y2 = map(float, input().split()) print(f'{math.sqrt((x2-x1)**2+(y2-y1)**2):.8f}')
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
51
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)
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)
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
103
import math data = list(map(float,input().split())) print("%f" %(math.sqrt(abs(data[0]-data[2])**2 + abs(data[1]-data[3]**2))))
import math data = list(map(float,input().split())) print("%f" %(math.sqrt(abs(data[0]-data[2])**2 + abs(data[1]-data[3])**2)))
[["+", 0, 657, 12, 657, 31, 652, 3, 4, 0, 25], ["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]]
5
62
x1,y1,x2,y2=map(int,input().split()) d=((x1-x2)**2 + (y1-y2)**2)**(1/2) print(d)
x1,y1,x2,y2=map(float,input().split()) d=((x1-x2)**2 + (y1-y2)**2)**(1/2) print(d)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
49
x1,y1,x2,y2=list(map(int,input().split())) x=x2-x1 y=y2-y1 print((x**2+y**2)**0.5)
x1,y1,x2,y2=list(map(float,input().split())) x=x2-x1 y=y2-y1 print((x**2+y**2)**0.5)
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
47
(n,m,o,p) = list(map(int, input().split())) print(((n-o)**2 + (m-p)**2)**0.5)
(n,m,o,p) = list(map(float, input().split())) print(((n-o)**2 + (m-p)**2)**0.5)
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
47
from math import * x1, y1, x2, y2 = list(map(int, input().split())) distance = sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2)) print(distance)
from math import * x1, y1, x2, y2 = list(map(float, input().split())) distance = sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2)) print(distance)
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
59
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))
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))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
61
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))
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))
[["-", 36, 36, 0, 656, 0, 1, 0, 657, 17, 33], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32]]
5
58
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)
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)
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
60
#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))
#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))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
66
import math point=list(map(int,input().split())) print(math.sqrt(pow(point[2]-point[0],2)+pow(point[3]-point[1],2)))
import math point=list(map(float,input().split())) print(math.sqrt(pow(point[2]-point[0],2)+pow(point[3]-point[1],2)))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
56
# coding=utf-8 import math.sqrt x1, y1, x2, y2 = list(map(int, input().split())) print(math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2))
# coding=utf-8 from math import sqrt x1, y1, x2, y2 = list(map(float, input().split())) print(sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2))
[["-", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 131], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 500, 2...
5
51
import math x1, y1, x2, y2 = list(map(int, input().split())) print(math.sqrt((x2-x1)**2 + (y2-y1)**2))
import math x1, y1, x2, y2 = list(map(float, input().split())) print(math.sqrt((x2-x1)**2 + (y2-y1)**2))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
48
import math x1, y1, x2, y2 = map(int, input().split()) dx = x1 - x2 dy = y1 - y2 d = math.hypot(dx, dy) print(d)
import math x1, y1, x2, y2 = map(float, input().split()) dx = x1 - x2 dy = y1 - y2 d = math.hypot(dx, dy) print(d)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
46
import math p = 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))
import math p = 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))
[["-", 12, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["-", 12, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 657, 12, 652, 63, 22]]
5
74
from math import sqrt x1, y1, x2, y2 = map(int, input().split()) r = sqrt((x2 - x1)**2 + (y2 - y1)**2) print(r)
from math import sqrt x1, y1, x2, y2 = map(float, input().split()) r = sqrt((x2 - x1)**2 + (y2 - y1)**2) print(r)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
48
from math import * x1,y1,x2,y2 = list(map(int,input().split())) print(sqrt(fabs(x1-x2)**2+fabs(y1-y2)**2))
from math import * x1,y1,x2,y2 = list(map(float,input().split())) print(sqrt(fabs(x1-x2)**2+fabs(y1-y2)**2))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
50
import math point = list(map(int, 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)
import math point = list(map(float, 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)
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
69
from math import sqrt x1, y1, x2, y2 = map(int, input().split()) print(sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2))
from math import sqrt x1, y1, x2, y2 = map(float, input().split()) print(sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
45
#encoding=utf-8 import sys import math printf = sys.stdout.write x1,y1,x2,y2 = list(map(int,input().split())) X = x2 - x1 Y = y2 - y1 printf(str(math.sqrt(X**2 + Y**2)))
#encoding=utf-8 import sys import math printf = sys.stdout.write x1,y1,x2,y2 = list(map(float,input().split())) X = x2 - x1 Y = y2 - y1 printf(str(math.sqrt(X**2 + Y**2)))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
63
import math x1,y1,x2,y2 = map(int,input().split(" ")) yoko = x2 - x1 tate = y2 - y1 print(math.sqrt(yoko**2+tate**2))
import math x1,y1,x2,y2 = map(float,input().split(" ")) yoko = x2 - x1 tate = y2 - y1 print(math.sqrt(yoko**2+tate**2))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
50
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)
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)
[["-", 0, 1, 0, 662, 12, 668, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 668, 8, 652, 63, 22]]
5
52
import math data =list(map(int, input().split(" "))) dx = data[2] - data[0] dy = data[3] - data[1] print(math.sqrt(dx**2+dy**2))
import math data =list(map(float, input().split(" "))) dx = data[2] - data[0] dy = data[3] - data[1] print(math.sqrt(dx**2+dy**2))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
59
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)
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)
[["-", 0, 1, 0, 662, 12, 668, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 668, 8, 652, 63, 22]]
5
60
from math import sqrt x_1,y_1,x_2,y_2=list(map(int,input().split(" "))) print(sqrt((x_1-x_2)**2 + (y_1-y_2)**2))
from math import sqrt x_1,y_1,x_2,y_2=list(map(float,input().split(" "))) print(sqrt((x_1-x_2)**2 + (y_1-y_2)**2))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
51
# 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)
# 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)
[["-", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22]]
5
58
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))
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))
[["+", 12, 652, 3, 4, 0, 657, 31, 657, 17, 578], ["+", 12, 652, 3, 4, 0, 657, 31, 657, 12, 612], ["+", 12, 652, 3, 4, 0, 657, 12, 657, 17, 578], ["+", 12, 652, 3, 4, 0, 657, 12, 657, 12, 612]]
5
47
import math x, y, X, Y = [int(i) for i in input().split()] print(math.sqrt((x-X)**2 + abs(y-Y)**2))
import math x, y, X, Y = [float(i) for i in input().split()] print(math.sqrt((x-X)**2 + abs(y-Y)**2))
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
50
import math x, y, X, Y = [int(i) for i in input().split()] print(math.sqrt((x-X)**2 + abs(y-Y)**2))
import math x, y, X, Y = [float(i) for i in input().split()] print(math.sqrt((x-X)**2 + (y-Y)**2))
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["-", 3, 4, 0, 657, 12, 657, 31, 652, 63, 22]]
5
50
import math x, y, X, Y = [int(i) for i in input().split()] print (math.sqrt((x-X)**2+(y-Y)**2))
import math x, y, X, Y = [float(i) for i in input().split()] print (math.sqrt((x-X)**2+(y-Y)**2))
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
49
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))
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))
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
55
r = list(map(int, input().split())) print('{0:f}'.format(((r[2] - r[0]) ** 2 + (r[3] - r[1]) ** 2) ** 0.5))
r = list(map(float, input().split())) print('{0:f}'.format(((r[2] - r[0]) ** 2 + (r[3] - r[1]) ** 2) ** 0.5))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
58
import math a,b,c,d = map(float, input().split()) t = pow(a-b,2) + pow(b-d,2) print(math.sqrt(t))
import math a,b,c,d = map(float, input().split()) t = pow(a-c,2) + pow(b-d,2) print(math.sqrt(t))
[["-", 12, 657, 31, 652, 3, 4, 0, 657, 12, 22], ["+", 12, 657, 31, 652, 3, 4, 0, 657, 12, 22]]
5
50
import math x1, y1, x2, y2 = list(map(int, input().split(" "))) print((math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)))
import math x1, y1, x2, y2 = list(map(float, input().split(" "))) print((math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
53
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)))
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)))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
64
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))
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))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
53
x,y,xx,yy=map(float, input().split()) print('%g'%((x-xx)**2+(y-yy)**2)**0.5)
x,y,xx,yy=map(float, input().split()) print('%5f'%((x-xx)**2+(y-yy)**2)**0.5)
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
46
import math x1, y1, x2, y2 = [int(_) for _ in input().split()] print(math.sqrt(pow((x2-x1), 2)+pow((y2-y1), 2)))
import math x1, y1, x2, y2 = [float(_) for _ in input().split()] print(math.sqrt(pow((x2-x1), 2)+pow((y2-y1), 2)))
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
55
x1, y1, x2, y2 = list(map(int, input().split())) print(((x1 - x2)**2 + (y1 - y2)**2)**0.5)
x1, y1, x2, y2 = list(map(float, input().split())) print(((x1 - x2)**2 + (y1 - y2)**2)**0.5)
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
45
#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)))
#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)))
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
88
import math x = list(map(int, (input()).split(" "))) print(math.sqrt((x[2]-x[0])*(x[2]-x[0]) + (x[3]-x[1])*(x[3]-x[1])))
import math x = list(map(float, (input()).split(" "))) print(math.sqrt((x[2]-x[0])*(x[2]-x[0]) + (x[3]-x[1])*(x[3]-x[1])))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
79
''' ITP-1_10-A ?????¢ ?????? P1(x1, y1), P2(x2, y2) ????????¢????±???????????????°???????????????????????? ???Input x1, y1, x2, y2 ????????°???????????????????????§????????????????????? ???Output P1??¨P2????????¢????????°??§?????????????????????????????????0.0001??\????????????????????£????????????????????¨???????????...
''' ITP-1_10-A ?????¢ ?????? P1(x1, y1), P2(x2, y2) ????????¢????±???????????????°???????????????????????? ???Input x1, y1, x2, y2 ????????°???????????????????????§????????????????????? ???Output P1??¨P2????????¢????????°??§?????????????????????????????????0.0001??\????????????????????£????????????????????¨???????????...
[["-", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22]]
5
123
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))
import math #1st line pos_x1, pos_y1, pos_x2, pos_y2 = map(float,input().split(" ")) dist = math.sqrt((pos_x1-pos_x2)**2 + (pos_y1 - pos_y2)**2) print(str(dist))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
55
x1, y1, x2, y2 = [int(x) for x in input().split(" ")] print( ( (x2 - x1) ** 2 + (y2 - y1) ** 2 ) ** (1/2) )
x1, y1, x2, y2 = [float(x) for x in input().split(" ")] print( ( (x2 - x1) ** 2 + (y2 - y1) ** 2 ) ** (1/2) )
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
53
import math x1,y1,x2,y2 = (int(i) for i in input().split()) print(math.sqrt((x2-x1)**2+(y2-y1)**2))
import math x1,y1,x2,y2 = (float(i) for i in input().split()) print(math.sqrt((x2-x1)**2+(y2-y1)**2))
[["-", 0, 1, 0, 662, 12, 668, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 668, 8, 652, 63, 22]]
5
49
#!/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()
#!/usr/bin/env python3 import math import sys def dist(): coordinates = [float(num) for num in sys.stdin.readline().split()] return math.hypot(coordinates[2]-coordinates[0], coordinates[3]-coordinates[1]) def main(): print(dist()) if __name__ == '__main__': main()
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
78
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)
a, b, c, d = [float(temp) for temp in input().split()] from math import sqrt dis = sqrt((c - a) ** 2 + (d - b) ** 2) print('%0.5f'%dis)
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
56
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))
import math x1, y1, x2, y2 = list(map(float, input().split())) exp_dist = abs(x1 - x2)**2 + abs(y1 - y2)**2 print(math.sqrt(exp_dist))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
53
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)))
from math import sqrt x1, y1, x2, y2 = [float(i) for i in input().split(" ")] print("{:.8f}".format(sqrt( (x2 -x1) ** 2 + (y2 - y1) ** 2)))
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
59
#!/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)
#!/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("%.8f" % distance)
[["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 655], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 109]]
5
102
import math x1, y1, x2, y2 = map(int, input().split()) print(math.sqrt((x2 - x1)**2 + (y2 - y1)**2))
import math x1, y1, x2, y2 = map(float, input().split()) print(math.sqrt((x2 - x1)**2 + (y2 - y1)**2))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
45
import math x1, y1, x2, y2 = map(int, input().split()) print(math.sqrt((x2 - x1)**2 + (y2 - y1)**2))
import math x1, y1, x2, y2 = map(float, input().split()) distance = math.sqrt((x2 - x1)**2 + (y2 - y1)**2) print(distance)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656...
5
45
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)
import math s = input().split(" ") n = list(map(float,s)) d = math.sqrt((n[0]-n[2])**2 + (n[1]-n[3])**2) print(d)
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
63
x1,y1,x2,y2=map(int,input().split()) print("%.6f"%((x2-x1)**2+(y2-y1**2))**0.5)
x1,y1,x2,y2=map(float,input().split()) print("%.6f"%((x2-x1)**2+(y2-y1)**2)**0.5)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 31, 23, 0, 657, 12, 657, 31, 23, 0, 25], ["-", 12, 657, 31, 23, 0, 657, 12, 23, 0, 25]]
5
46
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))))
import math x1, y1, x2, y2 = map(float, input().split()) print('{:.5f}'.format(math.sqrt(math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2))))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
58
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)))
import math m=[float(i)for i in input().split()] x=m[2]-m[0] y=m[3]-m[1] print(math.sqrt(float(x*x+y*y)))
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
60
#!/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)
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ?????¢ """ import math x1, y1, x2, y2 = map(float,input().strip().split()) x = x1 - x2 y = y1 - y2 distance = math.sqrt(x * x + y * y) print(distance)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
59
x1,y1,x2,y2 = [int(s) for s in input().split(' ')] print(((x1-x2)**2 + (y1-y2)**2)**0.5)
x1,y1,x2,y2 = [float(s) for s in input().split(' ')] print(((x1-x2)**2 + (y1-y2)**2)**0.5)
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
49
import math def main(): X1, Y1, X2, Y2 = map(int, input().split()) dist = math.sqrt((X2 - X1) ** 2 + (Y2 - Y1) ** 2) print(dist) main()
import math def main(): X1, Y1, X2, Y2 = map(float, input().split()) dist = math.sqrt((X2 - X1) ** 2 + (Y2 - Y1) ** 2) print(dist) main()
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
56
import math x1,y1,x2,y2= map(int,(input().split())) D=(x2-x1)**2+(y2-y1)**2 d= math.sqrt(D) print(d)
import math x1,y1,x2,y2= map(float,(input().split())) D=(x2-x1)**2+(y2-y1)**2 d= math.sqrt(D) print(d)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
53
x1,y1,x2,y2=list(map(int,input().split())) d=((x1-x2)**2+(y1-y2)**2)**0.5 print(d)
x1,y1,x2,y2=list(map(float,input().split())) d=((x1-x2)**2+(y1-y2)**2)**0.5 print(d)
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
48
import math x1, y1, x2, y2 = map(int, input().split()) x = x2 - x1 y = y2 - y1 result = x**2 + y**2 print(math.sqrt(result))
import math x1, y1, x2, y2 = map(float, input().split()) x = x2 - x1 y = y2 - y1 result = x**2 + y**2 print(math.sqrt(result))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
50
import math x1,y1,x2,y2=map(int,input().split()) answer=(math.sqrt((x2-x1)**2+(y2-y1)**2)) print("{0:.8f}".format(answer))
import math x1,y1,x2,y2=map(float,input().split()) answer=(math.sqrt((x2-x1)**2+(y2-y1)**2)) print("{0:.8f}".format(answer))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
57
import math x1, y1, x2, y2 = list(map(int, input().split())) x, y = x2 - x1, y2 - y1 print(math.sqrt(x**2 + y**2))
import math x1, y1, x2, y2 = list(map(float, input().split())) x, y = x2 - x1, y2 - y1 print(math.sqrt(x**2 + y**2))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
51
import math x1, y1, x2, y2 = map(int, input().split()) print('%f' %(math.sqrt((x1-x2)**2 + (y1-y2)**2)))
import math x1, y1, x2, y2 = map(float, input().split()) print('%f' %(math.sqrt((x1-x2)**2 + (y1-y2)**2)))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
51
import math x1,y1,x2,y2 = input().split() print(math.sqrt((x2-x1)**2 + (y2-y1)**2))
import math x1,y1,x2,y2 = map(float,input().split()) print(math.sqrt((x2-x1)**2 + (y2-y1)**2))
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
40
import math str = input().split(' ') x1 = int(str[0]) x2 = int(str[1]) y1 = int(str[2]) y2 = int(str[3]) result = (x1-y1)*(x1-y1) + (x2-y2)*(x2-y2) result = math.sqrt(result) if result != 0 else 0 print('%.6f'%result)
import math str = input().split(' ') x1 = float(str[0]) x2 = float(str[1]) y1 = float(str[2]) y2 = float(str[3]) result = (x1-y1)*(x1-y1) + (x2-y2)*(x2-y2) result = math.sqrt(result) if result != 0 else 0 print('%.6f'%result)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
97
from math import sqrt def main(): x1, y1, x2, y2 = map(int, input().split()) print(sqrt(abs(x2-x1)**2 + abs(y2-y1)**2)) main()
from math import sqrt def main(): x1, y1, x2, y2 = map(float, input().split()) print(sqrt(abs(x2-x1)**2 + abs(y2-y1)**2)) main()
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
55
import math x1,y1,x2,y2 = map(int, input().split()) print(math.sqrt(pow(x2-x1, 2) + pow(y2-y1, 2)))
import math x1,y1,x2,y2 = map(float, input().split()) print(math.sqrt(pow(x2-x1, 2) + pow(y2-y1, 2)))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
47
import math x1, y1, x2, y2 = [int(s) for s in input().split()] print(math.sqrt((math.fabs(x1 - x2) ** 2) + (math.fabs(y1 - y2) ** 2)))
import math x1, y1, x2, y2 = [float(s) for s in input().split()] print(math.sqrt((math.fabs(x1 - x2) ** 2) + (math.fabs(y1 - y2) ** 2)))
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
59
# -*-coding:utf-8 import math def main(): x1, y1, x2, y2 = map(int, input().split()) print(math.sqrt(pow(x2-x1, 2) + pow(y2-y1, 2))) if __name__ == '__main__': main()
# -*-coding:utf-8 import math def main(): x1, y1, x2, y2 = map(float, input().split()) print(math.sqrt(pow(x2-x1, 2) + pow(y2-y1, 2))) if __name__ == '__main__': main()
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
63
x1,y1,x2,y2=map(int,input().split()) print(float((abs(x1-x2)**2)+abs(y1-y2)**2)**(1/2))
x1,y1,x2,y2=map(float,input().split()) print(float((abs(x1-x2)**2)+abs(y1-y2)**2)**(1/2))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
51
a, b, c, d = map(int, input().split()) print(pow((c-a)**2 + (d-b)**2, 0.5))
a, b, c, d = map(float, input().split()) print(pow((c - a)**2 + (d - b)**2, 0.5))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
43
o,p,q,r = [int(i) for i in input().split()] print(format(((q-o)**2+(r-p)**2)**(1/2), '.8f'))
o,p,q,r = [float(i) for i in input().split()] print(format(((q-o)**2+(r-p)**2)**(1/2), '.8f'))
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
57
x1,y1,x2,y2 = map(int,input().split()) distance = ( (x1 - x2)**2 + (y1 - y2)**2 )**(1/2) print('{}'.format(distance))
x1,y1,x2,y2 = map(float,input().split()) distance = ( (x1 - x2)**2 + (y1 - y2)**2 )**(1/2) print('{}'.format(distance))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
56
import math x1, y1, x2, y2 = map(int, input().split()) z = math.sqrt((x1-x2)**2 + (y1-y2)**2) print(z)
import math x1, y1, x2, y2 = map(float, input().split()) z = math.sqrt((x1-x2)**2 + (y1-y2)**2) print(z)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
48
import math def hoge(a): return a * a x1, y1, x2, y2 = map(int, input().split()) print (math.sqrt(hoge(math.fabs(x1-x2)) + hoge(math.fabs(y1-y2))))
import math def hoge(a): return a * a x1, y1, x2, y2 = map(float, input().split()) print (math.sqrt(hoge(math.fabs(x1-x2)) + hoge(math.fabs(y1-y2))))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
63
# coding:utf-8 import math array = list(map(int,input().split())) x1 = array[0] y1 = array[1] x2 = array[2] y2 = array[3] answer = math.sqrt(math.pow(x2 - x1,2) + math.pow(y2 - y1,2)) print(answer)
# coding:utf-8 import math array = list(map(float,input().split())) x1 = array[0] y1 = array[1] x2 = array[2] y2 = array[3] answer = math.sqrt(math.pow(x2 - x1,2) + math.pow(y2 - y1,2)) print(answer)
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
76
data = list(map(int, input().split())) print(((data[2]-data[0])**2+(data[3]-data[1])**2)**0.5)
data = list(map(float, input().split())) print(((data[2]-data[0])**2+(data[3]-data[1])**2)**0.5)
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
51
x1,y1,x2,y2 = [int(x) for x in input().split()] print(((x1-x2)**2+(y1-y2)**2)**(1/2))
x1,y1,x2,y2 = [float(x) for x in input().split()] print(((x1-x2)**2+(y1-y2)**2)**(1/2))
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
50
import math x1, y1, x2, y2 = map(int, input().split()) print("{:.8f}".format(math.sqrt((x2-x1)**2 + (y2-y1)**2)))
import math x1, y1, x2, y2 = map(float, input().split()) print("{:4f}".format(math.sqrt((x2-x1)**2 + (y2-y1)**2)))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
52
x1, y1, x2, y2 = map(float, input().split()) print("{:4f}".format((x2-x1)**2 + (y2-y1)**2)**0.5)
x1, y1, x2, y2 = map(float, input().split()) print("{:.5f}".format(((x2-x1)**2 + (y2-y1)**2)**0.5))
[["-", 0, 657, 31, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
47
x1, y1, x2, y2 = map(float, input().split()) print("{0:f}".format(sqrt((x1-x2)**2.0 + (y1-y2)**2.0)))
import math x1, y1, x2, y2 = map(float, input().split()) print("{0:f}".format(math.sqrt((x1-x2)**2.0 + (y1-y2)**2.0)))
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131]]
5
48
import math val = str(input()).split() numList = list(map(int, list(val))) print(math.sqrt(((numList[2]-numList[0]) ** 2) + ((numList[3]-numList[1]) ** 2)))
import math val = str(input()).split() numList = list(map(float, list(val))) print(math.sqrt(((numList[2]-numList[0]) ** 2) + ((numList[3]-numList[1]) ** 2)))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
67