| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76974 | 高楷伦 | 07切比雪夫距离 | C++ | Accepted | 1 MS | 276 KB | 266 | 2024-06-07 17:35:14 |
# include<iostream> # include<cstdio> # include<iomanip> # include<cmath> using namespace std; int main(){ int x1,y1,x2,y2,a,b; cin>>x1>>y1>>x2>>y2; a=abs(x1-x2); b=abs(y1-y2); if(a>b){ cout<<a; } else{ cout<<b; } return 0; }