Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147423 于墨轩 07切比雪夫距离 C++ Accepted 0 MS 272 KB 249 2026-02-04 22:45:37

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; int s = abs(a-c); int w = abs(b-d); if(s>w){ cout<<s; }else{ cout<<w; } return 0; }