#include<bits/stdc++.h> using namespace std; double xa,xb,ya,yb; int main() { cin>>xa>>ya>>xb>>yb; double aa=pow((xa-xb),2); double bb=pow((ya-yb),2); double ans=sqrt(aa+bb); printf("%.3f",ans); }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account