結果
問題 | No.2350 Four Seasons |
ユーザー |
|
提出日時 | 2023-06-23 13:06:45 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 91 ms / 2,000 ms |
コード長 | 274 bytes |
コンパイル時間 | 40 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-06-30 17:59:57 |
合計ジャッジ時間 | 1,879 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
コンパイルメッセージ
Syntax OK
ソースコード
# 入力された値を文字列で受け取るstr = gets.chompmonth = str.to_iif [3, 4, 5].include? monthputs "spring"elsif [6, 7, 8].include? monthputs "summer"elsif [9, 10, 11].include? monthputs "fall"elsif [12, 1, 2].include? monthputs "winter"end