Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
82179 卢语涵 07切比雪夫距离 C++ Accepted 1 MS 272 KB 265 2024-07-13 09:05:08

Tests(10/10):


Code:

#include<iostream> #include<cmath> using namespace std; int main(){ int a,b,a2,b2,c,d; cin>>a>>b>>a2>>b2; c=abs(a-a2); d=abs(b-b2); if(c>d){ cout<<c<<endl; } else{ cout<<d<<endl; } return 0; }