結果
| 問題 |
No.2350 Four Seasons
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-16 21:25:40 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 308 bytes |
| コンパイル時間 | 1,622 ms |
| コンパイル使用メモリ | 165,360 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-24 12:58:07 |
| 合計ジャッジ時間 | 2,118 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
void solve()
{
int x;
cin>>x;
if(x>=3&&x<=5)
{
cout<<"spring";
}else if(x>=4&&x<=8)
{
cout<<"summer";
}else if(x>=9&&x<=11)
{
cout<<"fall";
}else
{
cout<<"winter";
}
}
int main(void) {
int t;
t=1;
while (t--) {
solve();
}
}