Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145151 李昊阳 07切比雪夫距离 C++ Accepted 0 MS 268 KB 267 2026-01-25 09:09:30

Tests(10/10):


Code:

#include <iostream> #include <algorithm> #include <cmath> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int x = abs(a - c); int y = abs(b - d); int s= max(x, y); cout << s << endl; return 0; }