QWQ!!!
查看原帖
QWQ!!!
1188387
lzbyyds楼主2023/12/19 16:52
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
	int x1, x2, x3, y1, y2, y3;
	scanf("%d %d", &x1, &y1);
	scanf("%d %d", &x2, &y2);
	scanf("%d %d", &x3, &y3);
	double dis1, dis2, dis3;
	dis1 = sqrt(abs(x1 - x2) * abs(x1 - x2) + abs(y1 - y2) * abs(y1 - y2));
	dis2 = sqrt(abs(x3 - x2) * abs(x3 - x2) + abs(y3 - y2) * abs(y3 - y2));
	dis3 = sqrt(abs(x1 - x3) * abs(x1 - x3) + abs(y1 - y3) * abs(y1 - y3));
	double sum = dis1 + dis2 + dis3;
	return 0;
}
2023/12/19 16:52
加载中...