結果

問題 No.2350 Four Seasons
ユーザー CedeatCedeat
提出日時 2023-06-17 10:54:38
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 465 bytes
コンパイル時間 2,603 ms
コンパイル使用メモリ 207,748 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-07 08:12:47
合計ジャッジ時間 3,502 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 2 ms
4,384 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,384 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 2 ms
4,380 KB
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 1 ms
4,380 KB
testcase_11 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;
using ll = long long;

void Solve() {
    map<int, string> mp;
    mp[1] = mp[2] = mp[12] = "winter";
    mp[3] = mp[4] = mp[5] = "spring";
    mp[6] = mp[7] = mp[8] = "summer";
    mp[9] = mp[10] = mp[11] = "fall";
    int x;
    cin >> x;
    cout << mp[x] << '\n';
}

signed main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int tt = 1;
    //cin >> tt;
    while (tt--) Solve();

    return 0;
}
0