HDU2001
1 2 3 4 5 6 7 8 9 10 11
| #include <stdio.h> #include <math.h>
int main(){ //freopen("in.txt","r",stdin); double x1 = 0,x2 = 0,y1 = 0,y2 = 0; while(scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2)!=EOF){ printf("%.2lf\n",sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))); } return 0; }
|
最后更新时间:
欢迎评论~