結果

問題 No.2350 Four Seasons
ユーザー rio-yuasario-yuasa
提出日時 2023-06-23 17:42:42
言語 Ruby
(3.3.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 336 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 11,412 KB
実行使用メモリ 15,280 KB
最終ジャッジ日時 2023-09-13 12:41:51
合計ジャッジ時間 2,783 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,156 KB
testcase_01 AC 82 ms
15,216 KB
testcase_02 AC 83 ms
15,120 KB
testcase_03 AC 83 ms
15,112 KB
testcase_04 AC 83 ms
15,140 KB
testcase_05 AC 84 ms
15,280 KB
testcase_06 AC 83 ms
15,140 KB
testcase_07 AC 83 ms
15,148 KB
testcase_08 AC 84 ms
15,036 KB
testcase_09 AC 82 ms
15,116 KB
testcase_10 AC 81 ms
15,032 KB
testcase_11 AC 84 ms
15,208 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# 入力された値を文字列で受け取る
input = gets.chomp

case input
# 3,4,5の場合はspring
when "3", "4", "5"
    puts "spring"
# 6,7,8の場合はsummer
when "6", "7", "8"
    puts "summer"
# 9,10,11の場合はfall
when "9", "10", "11"
    puts "fall"
# 12,1,2の場合はwinter
when "12", "1", "2"
    puts "winter"
end
0