結果
問題 | No.2350 Four Seasons |
ユーザー |
![]() |
提出日時 | 2024-08-28 04:23:13 |
言語 | Elixir (1.18.1) |
結果 |
AC
|
実行時間 | 659 ms / 2,000 ms |
コード長 | 424 bytes |
コンパイル時間 | 1,190 ms |
コンパイル使用メモリ | 63,440 KB |
実行使用メモリ | 55,084 KB |
最終ジャッジ日時 | 2024-08-28 04:23:24 |
合計ジャッジ時間 | 10,505 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
defmodule Main do def input, do: IO.read(:line) |> String.trim def ii, do: input() |> String.to_integer def li, do: input() |> String.split |> Enum.map(&String.to_integer/1) def yn(b), do: IO.puts(if b, do: "Yes", else: "No") def main do x = ii() cond do x in 3..5 -> "spring" x in 6..8 -> "summer" x in 9..11 -> "fall" x in [1, 2, 12] -> "winter" end |> IO.puts end end