#include <iostream>
#include <array>
using namespace std;
int main() {
int n;
while (cin >> n) { // 注意 while 处理多个 case
int year = n/100;
int month = n%100;
if(month==1||month==2)
month+=12;
std::array<std::string, 4> jijie = {"spring", "summer", "autumn", "winter"};
cout<<jijie[(month-3)/3];
}
}
// 64 位输出请用 printf("%lld")
不想用ifelse,个人认为顺序使用数组方便一些

京公网安备 11010502036488号