Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
65583 邓嘉瑶 07切比雪夫距离 C++ Wrong Answer 2 MS 264 KB 327 2024-01-26 12:15:24

Tests(0/10):


Code:

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


Run Info:

------Input------
37 85 25 78
------Answer-----
12
------Your output-----
12712-7