homoteam_ikun @ 2023-01-31 04:33:08
rt 下为代码
#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
double homo(double x1,double x2,double y1,double y2){
return sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
}
int main(){
double x1,x2,x3,y1,y2,y3,sum=0;
cin>>x1>>y1>>x2>>y2>>x3>>y3;
sum=homo(x1,y1,x2,y2);
sum+=homo(x1,y1,x3,y3);
sum+=homo(x2,y2,x3,y3);
cout<<fixed<<setprecision(2)<<sum;
}
我吐了 这破红题调一晚上了
by Children_Insole @ 2023-01-31 22:35:19
您好亲,很高兴为您。。。 啊这来晚力
by homoteam_ikun @ 2023-02-01 00:57:48
@wzcWannaAkCSPs2 《 自 动 雷 普 机 》
by Wzc_DL24JP @ 2023-02-01 06:38:44
@homoteam_ikun 下午喝红茶,倍精神(大嘘
by Wzc_DL24JP @ 2023-02-01 06:39:12
@Konjac_Lee "雷厉风行"的科普(确信