一道水题居然没人提交题解
只需判断是否在 月至 月之间就可以啦。
AC代码
#include<bits/stdc++.h>
using namespace std;
int main() {
int m;
cin >> m;
if (m >= 4 && m <= 9) { // 判断是否在 4 月至 9 月
cout << "Yes";
} else {
cout << "No";
}
return 0;
}一道水题居然没人提交题解
只需判断是否在 月至 月之间就可以啦。
#include<bits/stdc++.h>
using namespace std;
int main() {
int m;
cin >> m;
if (m >= 4 && m <= 9) { // 判断是否在 4 月至 9 月
cout << "Yes";
} else {
cout << "No";
}
return 0;
}