1 solutions

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

    废话不多说直接上代码

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    long long a,s,d;
    cin>>a>>s>>d;
    if((a<=s&&a>=d)||(a>=s&&a<=d)){cout<<a;return 0;}
    if((s<=d&&s>=a)||(s>=d&&s<=a)){cout<<s;return 0;}
    if((d<=s&&d>=a)||(d>=s&&d<=a))cout<<d;
    return 0;
    }
    
    

    题目传送门 ☜戳亿下

    不喜勿喷小雪参

    • 1

    Information

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