Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
87621 Kevin 07切比雪夫距离 C++ Accepted 1 MS 272 KB 178 2024-08-10 21:33:25

Tests(10/10):


Code:

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