#include <iostream>
#include <cmath>
#include <iomaip>

int mani()  {
    int n;
    //check if n is valid integer
    if (!(cin >> n)) {
        count << "Invalid input";
        return 0;
    }
    for (int i=0; i < n; i++)  {
        double x1, y1, x2, y2;
        
        // check if coordinates are valid
        if (!(cin >> x1 >> y1 >> x2 >>y2))  {
            return 0;
        }
        double distance = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
        
        cout << fixed << setprecision(2) << distance << end1;
    }
    return 0;
}