666,WA了5个点
查看原帖
666,WA了5个点
800432
Xiong_xhrxhr楼主2024/4/9 21:28

666,WA了5个点

#include<bits/stdc++.h>
using namespace std;
double a1,b1,a2,b2;
void f(double x1,double x2,double y1,double y2){
	cout<<fixed<<setprecision(3)<<sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));    
}
int main(){
	cin>>a1>>b1>>a2>>b2;
	f(a1,b1,a2,b2);
   return 0;
}

6

2024/4/9 21:28
加载中...