結果
| 問題 |
No.2350 Four Seasons
|
| コンテスト | |
| ユーザー |
sorachandu
|
| 提出日時 | 2023-06-16 21:21:55 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 1,815 bytes |
| コンパイル時間 | 3,789 ms |
| コンパイル使用メモリ | 228,648 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-24 12:49:12 |
| 合計ジャッジ時間 | 4,242 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#if __has_include(<atcoder/all>)
#include <atcoder/all>
using namespace atcoder;
#endif
// clang-format off
struct Init { Init() { ios::sync_with_stdio(0); cin.tie(0); cout << setprecision(13); } }init;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef vector<vector<int>> Graph;
#define rep(i, x, limit) for (int i = (int)x; i < (int)limit; i++)
#define REP(i, x, limit) for (int i = (int)x; i <= (int)limit; i++)
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define el '\n'
#define spa " "
#define YES cout << "Yes" << el
#define NO cout << "No" << el
#define eps (1e-10)
#define Equals(a,b) (fabs((a) - (b)) < eps )
const double pi = 3.141592653589793238;
const int inf = 1073741823;
const ll infl = 1LL << 60;
//配列の要素を空白区切りで出力
template<class T> inline void print_vec(const vector<T>& v) {
if(v.empty()){
cout << "This vector is empty." << el;
return;
}
for (int i = 0; i < v.size(); i++) {
if(v[i]==inf || v[i]==infl) cout << 'x' << spa;
else cout << v[i] << spa;
}
cout << el;
}
template<class T> inline bool chmax(T& a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template<class T> inline bool chmin(T& a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
// clang-format on
//--------------------------------------------------------
int main() {
int x;
cin >> x;
if(x == 3 || x == 4 || x == 5) cout << "spring" << el;
if(x == 6 || x == 7 || x == 8) cout << "summer" << el;
if(x == 9 || x == 10 || x == 11) cout << "fall" << el;
if(x == 12 || x == 1 || x == 2) cout << "winter" << el;
}
sorachandu