結果

問題 No.2350 Four Seasons
ユーザー artemis_1889
提出日時 2023-06-16 21:25:26
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 989 bytes
コンパイル時間 1,718 ms
コンパイル使用メモリ 191,572 KB
最終ジャッジ日時 2025-02-14 04:21:46
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef vector<int> vi;
#define all(v) v.begin(), v.end()
#define MOD 1000000007
#define MOD2 998244353
#define MX 1000000000
#define MXL 1000000000000000000
#define PI (ld)2*acos(0.0)
#define pb push_back
#define sc second
#define fr first
#define endl '\n'
#define ld long double
#define NO cout << "NO" << endl
#define YES cout << "YES" << endl
#define fo(a,b,c) for (a=b; a<=c; a++)
#define fd(a,b,c) for (a=b; a>=c; a--)
ll n,m,k,q,l,r,x,y,z;
const ll template_array_size=1e6+585;
ll a[template_array_size];
ll b[template_array_size];
ll c[template_array_size];
string s, t;
ll ans=0;

void solve(int tc=0){
    ll n;
    cin>>n;
    if(n>=3 and n<=5){
        cout<<"spring";
    }
    else if(n>=6 && n<=8){
        cout<<"summer";
    }
    else if(n>=9 and n<=11) cout<<"fall";
    else if(n==12 || n==1 || n==2) cout<<"winter";

}

int main(){

    int tc=1;
    //cin>>tc;
    for(int t=0;t<tc;t++) solve(t);
}
0