結果

問題 No.3041 なんとかのはなうらない
ユーザー gemmarogemmaro
提出日時 2020-04-29 19:18:57
言語 Elixir
(1.16.2)
結果
AC  
実行時間 624 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 1,043 ms
コンパイル使用メモリ 55,740 KB
実行使用メモリ 52,164 KB
最終ジャッジ日時 2023-08-30 00:44:46
合計ジャッジ時間 11,924 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 620 ms
49,304 KB
testcase_01 AC 624 ms
52,164 KB
testcase_02 AC 622 ms
49,916 KB
testcase_03 AC 614 ms
49,956 KB
testcase_04 AC 616 ms
49,468 KB
testcase_05 AC 611 ms
49,696 KB
testcase_06 AC 619 ms
49,104 KB
testcase_07 AC 611 ms
49,140 KB
testcase_08 AC 621 ms
49,140 KB
testcase_09 AC 621 ms
49,268 KB
testcase_10 AC 611 ms
49,740 KB
testcase_11 AC 607 ms
49,020 KB
testcase_12 AC 612 ms
49,728 KB
testcase_13 AC 614 ms
49,288 KB
testcase_14 AC 622 ms
49,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.read(:line)
    |> Integer.parse()
    |> solve
    |> IO.puts()
  end

  def solve({n, _}) do
    cond do
      n <= 4 || n |> rem(2) -> "Yes"
      true -> "No"
    end
  end
end
0