結果
| 問題 |
No.2350 Four Seasons
|
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2023-06-28 18:51:46 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 437 bytes |
| コンパイル時間 | 410 ms |
| コンパイル使用メモリ | 40,000 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-05 12:09:43 |
| 合計ジャッジ時間 | 822 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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