fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a;
  6. cin >> a;
  7. cout << ((a % 12) < 3 ? "Winter" : (a % 12) < 6 ? "Spring" : (a % 12) < 9 ? "Summer" : "Autumn");
  8. return 0;
  9. }
Success #stdin #stdout 0s 3464KB
stdin
12
stdout
Winter