50分求条,(xuan|guan
查看原帖
50分求条,(xuan|guan
1086443
Innate_Joker楼主2024/8/14 19:49
#include <iostream>
using namespace std;
int main() {
	int high,time;
	cin >> high >> time;
	if(high < 10) {
		cout << "Drizzle\n";//小雨
	} else if(high < 25) {
		cout << "Moderate Rain\n";//中雨
	} else if(high < 50) {
		cout << "Heavy Rain\n";//大雨
	} else {
		cout << "Torrential Rain\n";//暴雨
	}
	if(time == 1) {//时间是一小时的情况
		cout << "YES";
	} else {
		cout << "NO";
	}
	return 0;
}

支持互关\Huge 支持互关

2024/8/14 19:49
加载中...