样例过了...然后全部WA
查看原帖
样例过了...然后全部WA
311230
AT1198_100楼主2020/5/13 13:43
#include<bits/stdc++.h>
using namespace std;
int main(){
	double a,b,c,d,e,f;
	cin>>a>>b>>c>>d>>e>>f;
	int x,y,z;
	x=sqrt((c-a)*(c-a)+(d-b)*(d-b));
	y=sqrt((e-c)*(e-c)+(f-d)*(f-d));
	z=sqrt((e-a)*(e-a)+(f-b)*(f-b));
	cout<<fixed<<setprecision(2)<<x+y+z;
	return 0;
}
2020/5/13 13:43
加载中...