結果
| 問題 |
No.2350 Four Seasons
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-18 11:15:59 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 691 bytes |
| コンパイル時間 | 1,010 ms |
| コンパイル使用メモリ | 94,008 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-26 00:08:56 |
| 合計ジャッジ時間 | 1,471 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 |
ソースコード
#include <iostream>
#include <cstring>
#include <cstdio>
#include <algorithm>
#include <queue>
#include <cmath>
#include <limits>
#include <map>
#include <vector>
#include <set>
#include <iomanip>
#include <stack>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(a) (a).begin(),(a).end()
typedef long long ll;
#define I_MAX 2147483647;
#define LL_MAX 9223372036854775806;
int main() {
int x;
cin >>x;
if(x==1||x==2||x==12){
cout << "winter" << endl;
} else if(x==3||x==4||x==5) {
cout <<"spring"<<endl;
} else if(x==6||x==7||x==8) {
cout << "summer" << endl;
} else {
cout << "fall" << endl;
}
return 0;
return 0;
}