Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
65587 袁嘉蔓 07切比雪夫距离 C++ Wrong Answer 2 MS 268 KB 286 2024-01-26 12:52:27

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; int n=0,z=0; scanf("%d%d%d%d",&a,&b,&c,&d); if(a>b){ n=a-b; }else{ n=b-a; } if(c>d){ z=c-d; }else{ z=d-c; } if(n>z){ printf("%d",n); }else{ printf("%d",z); } return 0; }


Run Info:

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