提交时间:2026-02-06 20:16:09

运行 ID: 84058

#include<bits/stdc++.h> using namespace std; double qu(int a,int b,int x,int y){ return sqrt(pow(a-x,2)+pow(b-y,2)); } int main() { int n; cin>>n; int u,v,w,s; for(int i=0;i<n;++i){ cin>>u>>v>>w>>s; cout<<fixed<<setprecision(2)<<qu(u,v,w,s)<<'\n'; } return 0; }