結果
| 問題 | No.2350 Four Seasons |
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2023-06-28 18:51:46 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 437 bytes |
| 記録 | |
| コンパイル時間 | 398 ms |
| コンパイル使用メモリ | 48,344 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-26 19:43:46 |
| 合計ジャッジ時間 | 1,122 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 2350.cc: No.2350 Four Seasons - yukicoder
*/
#include<cstdio>
#include<algorithm>
using namespace std;
/* constant */
/* typedef */
/* global variables */
/* subroutines */
/* main */
int main() {
int x;
scanf("%d", &x);
if (x >= 3 && x <= 5) puts("spring");
else if (x >= 6 && x <= 8) puts("summer");
else if (x >= 9 && x <= 11) puts("fall");
else puts("winter");
return 0;
}
tnakao0123