Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5496 邱一涵 07切比雪夫距离 C++ Accepted 0 MS 264 KB 317 2024-11-16 21:02:17

Tests(10/10):


Code:

#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int x1,y1,x2,y2; int a,b; cin>>x1>>y1>>x2>>y2; a=abs(x1-x2); b=abs(y1-y2); if(a>b){ cout<<a; } else{ cout<<b; } return 0; }