| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157451 | 杨正蠔 | 07切比雪夫距离 | C++ | Accepted | 1 MS | 272 KB | 429 | 2026-07-24 09:17:47 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int x,y,a,b,m,n; cin>>x>>y>>a>>b; if (abs(x-a)>abs(y-b)){ cout<<abs(x-a)<<endl; } else { cout<<abs(y-b)<<endl; } return 0; }