用离谱的“学习能力”和离谱的长度 得到了45分)求救)
查看原帖
用离谱的“学习能力”和离谱的长度 得到了45分)求救)
1296064
gaoyuchen929sm楼主2024/5/25 22:18
#include<iostream>
using namespace std;

int main()
{
    int x,h;
    cin>>x>>h;
    if(x<10)
    {
        cout<<"Drizzle";
    }
    else if(x>=10 && x<25)
    {
        cout<<"Moderate Rain";
    }
    else if(x>=25 && x<50)
    {
        cout<<"Heavy Rain";
    }
    else if(x>=50)
    {
        cout<<"Torrential Rain";
    }
    if(h==1)
    {
        if(x>=20)
        {
            cout<<"YES";
        }
        else
        {
            cout<<"NO";
        }
    }
    return 0;
}
2024/5/25 22:18
加载中...