Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
143615 丁陆永新 07切比雪夫距离 C++ Accepted 0 MS 272 KB 249 2026-01-17 10:49:41

Tests(10/10):


Code:

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