結果
問題 | No.2350 Four Seasons |
ユーザー |
|
提出日時 | 2023-07-16 19:57:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 369 bytes |
コンパイル時間 | 1,588 ms |
コンパイル使用メモリ | 192,192 KB |
最終ジャッジ日時 | 2025-02-15 15:17:36 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define fast ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); #define ll long long #define ld long double const int N = 1e9; int main() { fast int n; cin>>n; if(n>=3&&n<=5)cout<<"spring"; else if(n>=6&&n<=8)cout<<"summer"; else if(n>=9&&n<=11)cout<<"fall"; else cout<<"winter"; }