Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
89600 徐文杰 07切比雪夫距离 C++ Wrong Answer 0 MS 268 KB 325 2024-08-25 15:25:02

Tests(0/10):


Code:

#include<iostream> using namespace std; int main(){ int a,s,d,f,z,x; cin>>a>>s>>d>>f; if(a>s){ z=s-a; } else{ z=a-s; } if(f>d){ x=d-f; } else{ x=f-d; } if(x>z){ cout<<z; } else{ cout<<x; } }


Run Info:

------Input------
37 85 25 78
------Answer-----
12
------Your output-----
-53