結果
問題 | No.2350 Four Seasons |
ユーザー |
|
提出日時 | 2023-06-16 21:31:49 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 910 bytes |
コンパイル時間 | 2,865 ms |
コンパイル使用メモリ | 245,716 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-24 13:06:36 |
合計ジャッジ時間 | 3,455 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;using ld = long double;using vll = vector<long long>;using vvll = vector<vector<long long>>;using vpll = vector<pair<ll, ll>>;using vs = vector<string>;using vb = vector<bool>;using vvb = vector<vector<bool>>;using pll = pair<ll, ll>;#define REP(i, n) for (long long i = 0; i < n; i++)#define REPIN(v) \for (long long i = 0; i < v.size(); i++) cin >> v[i];#define been(vec) vec.begin(), vec.end();ll gcd(ll x, ll y) { return (x % y) ? gcd(y, x % y) : y; }ll lcm(ll x, ll y) { return x / gcd(x, y) * y; }bool chmin(ll &a, const ll &b) { return (a > b && ((a = b) | 1)); }bool chmax(ll &a, const ll &b) { return (a < b && ((a = b) | 1)); }using namespace std;int main() {ll x;cin >> x;x -= 3;if (x < 0) {x += 12;}x /= 3;string s[] = {"spring", "summer", "fall", "winter"};cout << s[x] << endl;}