3 条题解
- 1
信息
- ID
- 164
- 时间
- 3000ms
- 内存
- 128MiB
- 难度
- 6
- 标签
- (无)
- 递交数
- 1111
- 已通过
- 300
- 上传者
#include <stdio.h>
#include <math.h>
int main()
{
int n;
scanf("%d",&n);
for(int i=0;i<n;i++){
double x1,y1,x2,y2;
scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
double a=sqrt((x1-x2)(x1-x2)+(y1-y2)(y1-y2));
printf("%.2lf\n",a);
}
return 0;
}