AC了三个点,求助。
查看原帖
AC了三个点,求助。
1159828
KOGU楼主2023/11/13 12:46
#include <bits/stdc++.h>
using namespace std;
int main(){
    int x1,x2,y1,y2;
    double d;
    cin>>x1>>x2>>y1>>y2;
    d=sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));
    printf("%.3lf",d);
    return 0;
}
2023/11/13 12:46
加载中...