#include <stdio.h>
#include <math.h>
int main()
{double x1,x2,y1,y2,s;scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);s=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));printf("%.2f",s);return 0;
}
详细解决方案
【1307】求两点间距离
热度:64 发布时间:2023-12-06 10:02:56.0