题解 | #四季#
四季
http://www.nowcoder.com/practice/eaf21203b61b4a689987fdc165d00dfc
int main()
{
int a;
scanf("%d", &a);
a = a % 100;
if (a >= 3 && a <= 5 )
{
printf("spring");
}
else if (a >= 6 && a <= 8)
{
printf("summer");
}
else if (a >= 9 && a <= 11)
{
printf("autumn");
}
else
{
printf("winter");
}
return 0;
}