結果

問題 No.2350 Four Seasons
ユーザー gemmarogemmaro
提出日時 2023-07-03 08:20:29
言語 Ruby
(3.3.0)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 698 ms
コンパイル使用メモリ 11,416 KB
実行使用メモリ 15,284 KB
最終ジャッジ日時 2023-09-24 05:11:06
合計ジャッジ時間 2,990 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
15,028 KB
testcase_01 AC 68 ms
15,080 KB
testcase_02 AC 66 ms
15,240 KB
testcase_03 AC 67 ms
15,248 KB
testcase_04 AC 66 ms
15,156 KB
testcase_05 AC 65 ms
15,172 KB
testcase_06 AC 66 ms
15,284 KB
testcase_07 AC 66 ms
15,284 KB
testcase_08 AC 66 ms
15,080 KB
testcase_09 AC 67 ms
15,240 KB
testcase_10 AC 66 ms
15,120 KB
testcase_11 AC 69 ms
15,248 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

month = gets.to_i
season = case month
         when 3, 4, 5 then "spring"
         when 6, 7, 8 then "summer"
         when 9, 10, 11 then "fall"
         when 12, 1, 2 then "winter"
         end
puts season
0