55
265
版主
#include<iostream> #include<iomanip> #include<cmath> using namespace std; int main(){ double Xa,Xb,Ya,Yb,B,A; cin>>Xa>>Ya>>Xb>>Yb; A=Xa-Xb; B=Ya-Yb; double C=sqrt(A*A+B*B); cout<<fixed<<setprecision(3)<<C; return 0; }
使用道具 举报
|山东智趣岛论坛 ( 鲁ICP备2023024048号 )
GMT+8, 2025-3-1 12:11 , Processed in 0.156567 second(s), 35 queries .
Powered by Discuz! X3.3 Licensed
Copyright © 2001-2020, Tencent Cloud.