結果
問題 | No.2350 Four Seasons |
ユーザー |
|
提出日時 | 2025-03-31 12:04:18 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 494 bytes |
コンパイル時間 | 954 ms |
コンパイル使用メモリ | 77,124 KB |
実行使用メモリ | 7,324 KB |
最終ジャッジ日時 | 2025-03-31 12:04:21 |
合計ジャッジ時間 | 1,858 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
#include <iostream>#include <cstdint>using namespace std;static inline constexpr const char* solve(const uint32_t X){switch (X){case 3:case 4:case 5:return "spring";case 6:case 7:case 8:return "summer";case 9:case 10:case 11:return "fall";case 12:case 1:case 2:return "winter";default:return "the abyss";}}int main(){cin.tie(nullptr);ios::sync_with_stdio(false);uint32_t X;cin >> X;cout << solve(X) << '\n';return 0;}