3 条题解

  • 3

    #include<iostream>
    using namespace std;
    int main()
    {
    double a,m,b,n;
    cin>>a>>m>>b>>n;
    if(a/m<b/n)
    cout<<"xiao gu shi hao ren";
    if(a/m>b/n)
    cout<<"xiao wang shi huai dan";
    if(a/m==b/n)
    cout<<"yi xiang tian kai";

    return 0;
    }

  • 2

    #include<iostream>
    using namespace std;
    int main()
    {
    double a,m,b,n;
    cin>>a>>m>>b>>n;
    if(a/m<b/n)
    cout<<"xiao gu shi hao ren";
    if(a/m>b/n)
    cout<<"xiao wang shi huai dan";
    if(a/m==b/n)
    cout<<"yi xiang tian kai";

    return 0;
    }
    不要白嫖!!!

  • -1
    @ 2021-11-26 21:01:10

    #include <iostream>
    using namespace std;
    int main()
    {
    int a,b,m,n;
    cin>>a>>b>>m>>n;
    if(1.0*a/m==1.0*b/n)
    cout<<"yi xiang tian kai";
    else
    if(1.0*a/m>1.0*b/n)
    cout<<"xiao wang shi huai dan";
    else
    cout<<"xiao gu shi hao ren";

    return 0;
    }

  • 1

信息

ID
1037
难度
2
分类
(无)
标签
递交数
143
已通过
87
通过率
61%
上传者