4 条题解

  • 1
    @ 2021-11-19 16:17:16

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

  • -1

    #include<iostream>
    #include<cmath>
    #include<iomanip>
    using namespace std;
    int main()

    {

    int x,y,z;
    cin>>x>>y>>z;
    if(x>y&&x>z)
    cout<<x;
    else if(y>x&&y>z)
    cout<<y;
    else if(z>x&&z>y)
    cout<<z;
    else if(x=y&&x>z)
    cout<<x;
    else if(x=y&&x<z)
    cout<<z;

    return 0;
    }

  • -1

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

  • -2

    iii

  • 1

信息

ID
2344
难度
3
分类
(无)
标签
递交数
177
已通过
94
通过率
53%
被复制
2
上传者