Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115960 常钰杰 07切比雪夫距离 C++ Accepted 1 MS 276 KB 357 2025-04-05 17:52:23

Tests(10/10):


Code:

#include<iostream> using namespace std; int JD(int a) { if(a>0) { return a; } else { return -a; } } int main() { int a,b,c,d; cin>>a>>b>>c>>d; int x,y; x=JD(c-a); y=JD(d-b); if(x>y) { cout<<x; } else { cout<<y; } return 0; }