結果

問題 No.2350 Four Seasons
ユーザー otamay6otamay6
提出日時 2023-06-16 21:22:23
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 416 bytes
コンパイル時間 2,079 ms
コンパイル使用メモリ 200,684 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-24 12:50:28
合計ジャッジ時間 2,638 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define REP(i,n) for(int i=0,i##_len=int(n);i<i##_len;++i)
#define rep(i,a,b) for(int i=int(a);i<int(b);++i)
#define All(x) (x).begin(),(x).end()
#define rAll(x) (x).rbegin(),(x).rend()
using namespace std;
using ll = long long;

int main(){
    int x;cin>>x;
    string s[4] = {
        "winter",
        "spring",
        "summer",
        "fall",
    };
    cout << s[(x%12)/3] << endl;
}
0