1 solutions

  • 1
    @ 2025-5-23 21:30:29

    废话不多说直接上代码

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    long long a,s,d;cin>>a>>s>>d;
    long long max1=a,min1=a;
    max1=max(max1,s);min1=min(min1,s);
    max1=max(max1,d);min1=min(min1,d);
    cout<<a+s+d-max1-min1;
    return 0;
    }
    
    

    题目传送门 ☜戳亿下

    不喜勿喷小雪参

    • 1

    Information

    ID
    4908
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    9
    Tags
    (None)
    # Submissions
    182
    Accepted
    14
    Uploaded By