ycr_qwq @ 2021-06-11 17:22:52
不知道为什么都没过TAT
#include<iostream>
#include<cmath>
#include<cstdio>
using namespace std;
double x1,x2,x3,y,y2,y3,ans;
int main()
{
cin>>x1>>x2>>x3>>y>>y2>>y3;
ans=sqrt(abs((x1-x2)*(x1-x2))+abs((y-y2)*(y-y2)))+sqrt(abs((x2-x3)*(x2-x3))+abs((y2-y3)*(y2-y3)))+sqrt(abs((x1-x3)*(x1-x3))+abs((y-y3)*(y-y3)));
printf("%.2lf",ans);
return 0;
}
by Suzt_ilymtics @ 2021-06-11 17:29:23
看清题目好吗,输入顺序错了