标签:style blog io color sp strong 数据 div on
描述
2 0 0 0 1 0 1 1 0
1.00 1.41
#include <stdio.h> #include <math.h> int main() { int n; double sum; scanf("%d",&n); double x1,x2,y1,y2; while(n--) { sum = 0; scanf("%lf%lf%lf%lf",&x1,&y1,&x2,&y2); sum = sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2)); printf("%.2f",sum); printf("\n"); } return 0; }
标签:style blog io color sp strong 数据 div on
原文地址:http://www.cnblogs.com/imwtr/p/4069505.html