| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 86548 | 张曦 | 07切比雪夫距离 | C++ | Accepted | 1 MS | 272 KB | 270 | 2024-07-26 09:59:27 |
#include <iostream> using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c>>d; if(a>c&&b>d) {if(a-c>b-d) cout<<a-c; else cout<<b-d;} else {if(c-a>d-b) cout<<c-a; else cout<<d-b;} return 0; }