#include <iostream> using namespace std; int main() { int month; cin >> month; // write your code here...... if (month < 1 || month > 12) { cout << "不合法" << endl; } else { switch (month) { case 3 ... 5: cout << "春季" << endl; break; case 6 ... 8: cout << "夏季" << endl; break; case 9 ... 11: cout << "秋季" << endl; break; default: cout << "冬季" << endl; } } return 0; }