为什么75
查看原帖
为什么75
952846
Happiness_Python楼主2023/10/26 21:43
#include <bits/stdc++.h>
using namespace std;

int x, h;
int main()
{
	cin >> x >> h;
	if (h == 24 && x < 10 || 
	    h == 1 && x * 24 < 10)
		cout << "Drizzle" << endl;
	else if (h == 24 && x < 25 || 
	         h == 1 && x * 24 < 25)
	    cout << "Moderate Rain" << endl;
	else if (h == 24 && x < 50 || 
	         h == 1 && x * 24 < 50)
	    cout << "Heavy Rain" << endl;
	else
		cout << "Torrential Rain" << endl;
		
	if (h == 1)
	{
		if (x >= 20)
			cout << "YES";
		else
			cout << "NO";
	}
	return 0;
}
2023/10/26 21:43
加载中...