結果
問題 | No.2350 Four Seasons |
ユーザー |
|
提出日時 | 2023-06-17 10:54:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 8 ms / 2,000 ms |
コード長 | 465 bytes |
コンパイル時間 | 2,032 ms |
コンパイル使用メモリ | 201,436 KB |
最終ジャッジ日時 | 2025-02-14 22:12:27 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
#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;}