結果

問題 No.2350 Four Seasons
ユーザー ARCANA
提出日時 2023-07-21 22:48:33
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 692 bytes
コンパイル時間 656 ms
コンパイル使用メモリ 67,120 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-22 00:20:49
合計ジャッジ時間 1,362 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>

using namespace std;

int main(){
  // input
  int X;
  cin >> X;
  string ans;
  switch (X)
  {
  case 1:
    ans = "winter";
    break;
  case 2:
    ans = "winter";
    break;
  case 3:
    ans = "spring";
    break;
  
  case 4:
    ans = "spring";
    break;
  case 5:
    ans = "spring";
    break;
  case 6:
    ans = "summer";
    break;
  case 7:
    ans = "summer";
    break;
  case 8:
    ans = "summer";
    break;
  case 9:
    ans = "fall";
    break;
  case 10:
    ans = "fall";
    break;
  case 11:
    ans = "fall";
    break;
  case 12:
    ans = "winter";
    break;
  default:
    break;
  }

  cout << ans << endl;
  // output 
}
0