1 条题解

  • 0
    @ 2024-4-6 10:00:51
    #include <iostream>
    using namespace std;
      
    int main()
    { 
        int a,b,c;
        cin>>a>>b>>c;
        if (a<b&&b<c){cout<<c<<" "<<b<<" "<<a;}
        else if (a<c&&c<b){cout<<b<<" "<<c<<" "<<a;}
        else if (b<c&&c<a){cout<<a<<" "<<c<<" "<<b;}
        else if (b<a&&a<c){cout<<c<<" "<<a<<" "<<b;}
        else if (c<a&&a<b){cout<<b<<" "<<a<<" "<<c;}
        else{cout<<a<<" "<<b<<" "<<c;}
        return 0;
    }
    
    • 1

    信息

    ID
    109
    时间
    1000ms
    内存
    64MiB
    难度
    10
    标签
    递交数
    3762
    已通过
    8
    上传者