25 条题解

  • 3

    #include<iostream>
    using namespace std;
    int main()
    {
    int hb,st,kl,x;
    cin>>hb>>st>>kl;
    if(hb<st)
    if(kl<hb)
    x=kl;
    else
    x=hb;
    else
    if(kl<st)
    x=kl;
    else
    x=st;
    cout<<x*2;
    return 0;
    }
    家人们绝对正确

  • 2
    #include<iostream>
    using namespace std;
    int main()
    {
        int han,shu,ke,x;
        cin>>han>>shu>>ke;
        if(han<shu)
            if(ke<han)
                x=ke;
            else
                x=han;
        else
            if(ke<shu)
                x=ke;
            else 
                x=shu;
        cout<<x*2;
        return 0;
    }
    
  • 1

    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    int a,b,c,minn=10000;
    cin>>a>>b>>c;
    if(minn>a)
    minn=a;
    if(minn>b)
    minn=b;
    if(minn>c)
    minn=c;
    cout<<minn*2;
    }

  • 1
    @ 2024-06-25 18:40:57

    省的钱数取决于套餐数,而套餐数又取决于购买数量最少的那种商品

    #include<iostream>
    using namespace std;
    int main(){
        ios::sync_with_stdio(false);
        int a, b, c;
        cin >> a >> b >> c;
        cout << 2*(min(min(a, b), c));
        return 0;
    }
    
  • 0
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a,b,c,n;
        cin>>a>>b>>c;
        n=min(a,min(b,c));
        cout<<n*2;
    }
    

    保证正确 !!!

  • 0
    @ 2022-07-01 14:28:10

    #include<iostream>
    using namespace std;
    int main()
    {
    int a,b,c,min;
    cin>>a>>b>>c;
    if(a<b)
    if(c<a)
    min=c;
    else
    min=a;
    else
    if(c<b)
    min=c;
    else
    min=b;
    cout<<min*2<<endl;
    return 0;
    }

  • -2

    #include<iostream>
    using namespace std;
    int main()
    {
    int han,shu,ke,x;
    cin>>han>>shu>>ke;
    if(han<shu)
    if(ke<han)
    x=ke;
    else
    x=han;
    else
    if(ke<shu)
    x=ke;
    else
    x=shu;
    cout<<x*2;
    return 0;
    }

  • -2

    #include<iostream>
    using namespace std;
    int main()
    {
    int han,shu,ke,x;
    cin>>han>>shu>>ke;
    if(han<shu)
    if(ke<han)
    x=ke;
    else
    x=han;
    else
    if(ke<shu)
    x=ke;
    else
    x=shu;
    cout<<x*2<<endl;
    return 0;
    }

  • -3

    #include<iostream>
    using namespace std;
    int main()
    {
    int han,shu,ke,x;
    cin>>han>>shu>>ke;
    if(han<shu)
    if(ke<han)
    x=ke;
    else
    x=han;
    else
    if(ke<shu)
    x=ke;
    else
    x=shu;
    cout<<x*2;
    return 0;
    }

  • -3

    #include<iostream>
    using namespace std;
    int main()
    {
    int han,shu,ke,x;
    cin>>han>>shu>>ke;
    if(han<shu)
    if(ke<han)
    x=ke;
    else
    x=han;
    else
    if(ke<shu)
    x=ke;
    else
    x=shu;
    cout<<x*2;
    return 0;
    }

  • -3

    #include<iostream>
    using namespace std;
    int main()
    {
    int han,shu,ke,x;
    cin>>han>>shu>>ke;
    if(han<shu)
    if(ke<han)
    x=ke;
    else
    x=han;
    else
    if(ke<shu)
    x=ke;
    else
    x=shu;
    cout<<x*2;
    return 0;
    }

  • -3

    #include<iostream>
    using namespace std;
    int main()
    {
    int han,shu,ke,x;
    cin>>han>>shu>>ke;
    if(han<shu)
    if(ke<han)
    x=ke;
    else
    x=han;
    else
    if(ke<shu)
    x=ke;
    else
    x=shu;
    cout<<x*2;
    return 0;
    }

  • -3

    #include<iostream>
    using namespace std;
    int main()
    {
    int han,shu,ke,x;
    cin>>han>>shu>>ke;
    if(han<shu)
    if(ke<han)
    x=ke;
    else
    x=han;
    else
    if(ke<shu)
    x=ke;
    else
    x=shu;
    cout<<x*2;
    return 0;
    }

  • -3

    #include<iostream>
    using namespace std;
    int main()
    {
    int han,shu,ke,x;
    cin>>han>>shu>>ke;
    if(han<shu)
    if(ke<han)
    x=ke;
    else
    x=han;
    else
    if(ke<shu)
    x=ke;
    else
    x=shu;
    cout<<x*2;
    return 0;
    }

  • -3

    #include<iostream>
    using namespace std;
    int main()
    {
    int han,shu,ke,x;
    cin>>han>>shu>>ke;
    if(han<shu)
    if(ke<han)
    x=ke;
    else
    x=han;
    else
    if(ke<shu)
    x=ke;
    else
    x=shu;
    cout<<x*2;
    return 0;
    }

  • -3

    #include<iostream>
    using namespace std;
    int main()
    {
    int han,shu,ke,x;
    cin>>han>>shu>>ke;
    if(han<shu)
    if(ke<han)
    x=ke;
    else
    x=han;
    else
    if(ke<shu)
    x=ke;
    else
    x=shu;
    cout<<x*2;
    return 0;
    }

  • -3

    #include<iostream>
    using namespace std;
    int main()
    {
    int han,shu,ke,x;
    cin>>han>>shu>>ke;
    if(han<shu)
    if(ke<han)
    x=ke;
    else
    x=han;
    else
    if(ke<shu)
    x=ke;
    else
    x=shu;
    cout<<x*2;
    return 0;
    }

  • -3

    #include<iostream>
    using namespace std;
    int main()
    {
    int han,shu,ke,x;
    cin>>han>>shu>>ke;
    if(han<shu)
    if(ke<han)
    x=ke;
    else
    x=han;
    else
    if(ke<shu)
    x=ke;
    else
    x=shu;
    cout<<x*2;
    return 0;
    }

  • -3

    #include<iostream>
    using namespace std;
    int main()
    {
    int han,shu,ke,x;
    cin>>han>>shu>>ke;
    if(han<shu)
    if(ke<han)
    x=ke;
    else
    x=han;
    else
    if(ke<shu)
    x=ke;
    else
    x=shu;
    cout<<x*2;
    return 0;
    }

  • -4

    #include<iostream>
    using namespace std;
    int main()
    {
    int han,shu,ke,x;
    cin>>han>>shu>>ke;
    if(han<shu)
    if(ke<han)
    x=ke;
    else
    x=han;
    else
    if(ke<shu)
    x=ke;
    else
    x=shu;
    cout<<x*2;
    return 0;
    }

信息

ID
1698
难度
1
分类
(无)
标签
递交数
176
已通过
112
通过率
64%
被复制
2
上传者