Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5358 詹梓涵 07切比雪夫距离 C++ Wrong Answer 0 MS 272 KB 286 2024-11-10 10:06:54

Tests(0/10):


Code:

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


Run Info:

------Input------
3 56 71 54
------Answer-----
68
------Your output-----
71