Problem : 2001 ( 计算两点间的距离 )     Judge Status : Accepted
RunId : 5995399    Language : C    Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
1 #include <stdio.h>
2 #include <math.h>
3 int main()
4 {
5     double x1,y1,x2,y2;
6     while (scanf("%lf%lf%lf%lf",&x1,&y1,&x2,&y2)!=EOF)
7         printf("%.2lf\n",sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)));
8     return 0;
9 }

 

相关文章:

  • 2022-02-16
  • 2021-12-01
  • 2022-01-25
  • 2022-01-23
  • 2022-02-05
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2022-01-23
  • 2021-05-19
  • 2022-02-12
  • 2021-12-21
  • 2021-04-25
相关资源
相似解决方案