Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144962 吴昊 07切比雪夫距离 C++ Accepted 0 MS 272 KB 227 2026-01-24 19:51:05

Tests(10/10):


Code:

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