結果
| 問題 |
No.2350 Four Seasons
|
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2023-07-16 11:48:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 256 bytes |
| コンパイル時間 | 1,591 ms |
| コンパイル使用メモリ | 167,068 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-17 12:41:43 |
| 合計ジャッジ時間 | 2,418 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
string ans = "winter";
if( 3 <= x && x <= 5 ) ans = "spring";
else if( 6 <= x && x <= 8 ) ans = "summer";
else if( 9 <= x && x <= 11 ) ans = "fall";
cout << ans << endl;
}
forest3