Run ID:110344
提交时间:2025-02-17 18:55:19
#include <iostream> #include <algorithm> // 用于 std::max using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; // 读取四个整数 // 计算切比雪夫距离 int distance = max(abs(a - c), abs(b - d)); // 输出结果 cout << distance << endl; return 0; }