| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68613 | 杨一诺 | 07切比雪夫距离 | C++ | Wrong Answer | 1 MS | 276 KB | 276 | 2024-03-24 09:20:58 |
#include<bits/stdc++.h> using namespace std; int main(){ int x1,y1,x2,y2,a,b; cin>>x1>>y1>>x2>>y2; if(x1>x2){ a=x1-x2; } else{ a=x2-x1; } if(x1>x2){ b=y1-y2; } else{ b=y2-y1; } if(a>b){ cout<<a; } else{ cout<<b; } return 0; }
------Input------
28 5 4 96
------Answer-----
91
------Your output-----
24