結果

問題 No.2350 Four Seasons
ユーザー artemis_1889artemis_1889
提出日時 2023-06-16 21:25:26
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 989 bytes
コンパイル時間 1,996 ms
コンパイル使用メモリ 197,332 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-06 18:36:28
合計ジャッジ時間 2,596 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

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