zhuzhu0307 @ 2024-10-26 13:07:42
略。
by rabbit_Cicy @ 2024-10-26 13:10:14
#include<bits/stdc++.h>
using namespace std;
double dis(double x1,double y1,double x2,double y2){
double s=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
return s;
}
int main(){
double x1, x2, x3, y1, y2, y3;
cin>>x1>>y1>>x2>>y2>>x3>>y3;
double ans=dis(x1,y1,x2,y2)+dis(x2,y2,x3,y3)+dis(x3,y3,x1,y1);
printf("%.2lf",ans);
return 0;
}
求关。。。
by zhuzhu0307 @ 2024-10-26 13:56:25
已关。。。