Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68615 杨一诺 07切比雪夫距离 C++ Accepted 1 MS 276 KB 204 2024-03-24 09:23:53

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int x1,y1,x2,y2,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; }