- 火炬手之梦
- 15 年前 @
...
1 条评论
-
yugeyang LV 10 @ 9 年前
#include<stdio.h>
#include<math.h>
#define DIST(x1,y1,x2,y2) sqrt(((x1)-(x2))*((x1)-(x2))+((y1)-(y2))*((y1)-(y2)))
int main(){
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,&d);
printf("%.3lf\n",DIST(0-a,sqrt((double)b),0-c,0-sqrt((double)d)));
return 0;
}
- 1