1 solutions

  • 0
    @ 2025-3-3 16:25:48

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int s1,s2,t1,t2;
        cin>>s1>>s2>>t1>>t2;
        cout<<max(abs(t1-s1),abs(t2-s2))<<endl;
        return 0;
    }
    
    
    • 1

    Information

    ID
    10097
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By