- 火炬手之梦
- 2010-04-11 15:31:26 @
...
1 条评论
-
yugeyang LV 10 @ 2015-05-26 13:11:35
#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