Files
python/TangDou/XiTi/1138.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

11 lines
193 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << abs(x1 - x2) + abs(y1 - y2) << endl;
return 0;
}