#include #include #include using namespace std; int main(int argc, const char* argv[]) { int Px, Py, Qx, Qy; cin >> Px >> Py >> Qx >> Qy; cout << fixed << setprecision(1) << (double)(fabs(Qx - Px) + fabs(Qy - Py)) / 2. << endl; return 0; }