Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98419 | 陈治宸 | 07切比雪夫距离 | C++ | Wrong Answer | 0 MS | 272 KB | 244 | 2024-11-21 21:43:55 |
#include<iostream> #include<cmath> using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; if(abs(a-b)>abs(c-d)){ cout<<abs(a-b)<<endl; } else cout<<abs(c-d)<<endl; return 0; }
------Input------
37 85 25 78
------Answer-----
12
------Your output-----
53