| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72377 | 刘珩宇 | 07切比雪夫距离 | C++ | Wrong Answer | 0 MS | 268 KB | 208 | 2024-05-05 14:51:54 |
# include<iostream> # include<cmath> using namespace std; int main(){ int x1,y1,x2,y2,a,b,c; cin>>x1>>y1>>x2>>y2; a=x2-x1; b=y2-y1; if(a>b){ c=a; } else{ c=b; } cout<<abs(c); return 0; }
------Input------
37 85 25 78
------Answer-----
12
------Your output-----
7