結果
問題 | No.2350 Four Seasons |
ユーザー |
![]() |
提出日時 | 2023-06-17 01:01:19 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 392 bytes |
コンパイル時間 | 1,622 ms |
コンパイル使用メモリ | 165,268 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-24 17:53:44 |
合計ジャッジ時間 | 2,211 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() #define inf (long long)2e+18 int main() { int x; cin >> x; x%=12; if(x < 3) cout << "winter" << endl; else if(x < 6) cout << "spring" << endl; else if(x < 9) cout << "summer" << endl; else if(x < 12) cout << "fall" << endl; }