Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
99110 | 陈骏睿 | 07切比雪夫距离 | C++ | Accepted | 1 MS | 272 KB | 250 | 2024-11-24 13:21:50 |
#include <iostream> using namespace std; int main(){ int a,b,c,d,e,f; cin>>a>>b>>c>>d; if (a>c) e=a-c; else e=c-a; if (b>d) f=b-d; else f=d-b; if (e>f) cout<<e<<endl; else cout<<f<<endl; return 0; }