私信TA

用户名:uq_26667239983

访问量:3973

签 名:

知识大海里的浪者

等  级
排  名 596
经  验 4197
参赛次数 0
文章发表 155
年  龄 18
在职情况 学生
学  校 湖南理工学院
专  业 软件工程

  自我简介:

解题思路:

注意事项:

参考代码:

#include<iostream>

#include<cmath>

using namespace std;


int main()

{

double x1, y1, x2, y2;

while (cin >> x1 >> y1 >> x2 >> y2)

{

double ans = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));

printf("%.2lf\n", ans);

}

return 0;

}


 

0.0分

0 人评分

  评论区

  • «
  • »