杭州电子大学acm 2001题为什么通不过

2024-12-26 07:26:24
推荐回答(1个)
回答1:

#include
#include
void main()
{
double x1,x2,y1,y2;
while(scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2)!=EOF){
x1=x1-x2;
y1=y1-y2;
printf("%.2f\n",sqrt(x1*x1+y1*y1));
}
}