HDU2001

#include <stdio.h>
#include <math.h>

int main(){
    //freopen("in.txt","r",stdin);
    double x1 = 0,x2 = 0,y1 = 0,y2 = 0;
    while(scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2)!=EOF){
        printf("%.2lf\n",sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)));
    }
    return 0;
}
posted @ 2015-12-03 15:17  sean10  阅读(196)  评论(0编辑  收藏  举报