Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
82173 叶城俊 07切比雪夫距离 C++ Accepted 1 MS 272 KB 263 2024-07-13 09:01:40

Tests(10/10):


Code:

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