1 条题解

  • 0
    @ 2023-2-4 11:54:50

    #include<bits/stdc++.h> using namespace std ; int main() { int a, b, c, d, x , y; cin>>a>>b>>c>>d; x=fabs(a-c); y=fabs(b-d);

    if(x>y)
    

    { cout<<x; } if(x==y) { cout<<x; } if(x<y) {

    cout<<y;
    

    } return 0 ; }

    • 1

    信息

    ID
    12
    时间
    1000ms
    内存
    256MiB
    难度
    3
    标签
    递交数
    151
    已通过
    82
    上传者