Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
66748 欧阳槊远 07切比雪夫距离 C++ Accepted 0 MS 268 KB 361 2024-03-10 14:05:52

Tests(10/10):


Code:

# include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c,d; int n=0,z=0; scanf("%d%d%d%d",&a,&b,&c,&d); if(a>c){ n=a-c; }else{ n=c-a; } if(b>d){ z=b-d; }else{ z=d-b; } if(n>z){ cout<<n; }else{ cout<<z; } return 0; }