#include <stdio.h> #include <math.h> typedef struct{ float a; float b; }Complex; int main(){ int n,i; float d; while(scanf("%d",&n)!=EOF){ Complex c[n*2]; for(i=0;i<n*2;i+=2){ scanf("%f %f %f %f",&c[i].a,&c[i].b,&c[i+1].a,&c[i+1].b); d=sqrt(pow((c[i].a-c[i+1].a),2)+pow((c[i].b-c[i+1].b),2)); printf("%.2f\n",d); } } }