标签:
#include <stdio.h> #include <math.h> int main() { double a, b, c, d, s; while (scanf ("%lf%lf%lf%lf", &a, &b, &c, &d)!=EOF) { s = sqrt((c-a)*(c-a)+(d-b)*(d-b)); printf ("%.2lf\n", s); } return 0; }
标签:
原文地址:http://www.cnblogs.com/Noevon/p/5928334.html