結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
ユーザー gemmarogemmaro
提出日時 2020-03-29 22:41:25
言語 Elixir
(1.16.2)
結果
AC  
実行時間 737 ms / 2,000 ms
コード長 349 bytes
コンパイル時間 2,473 ms
コンパイル使用メモリ 53,416 KB
実行使用メモリ 50,132 KB
最終ジャッジ日時 2023-08-29 23:50:38
合計ジャッジ時間 17,271 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 695 ms
49,472 KB
testcase_01 AC 688 ms
49,432 KB
testcase_02 AC 702 ms
49,372 KB
testcase_03 AC 712 ms
49,560 KB
testcase_04 AC 712 ms
49,392 KB
testcase_05 AC 727 ms
49,372 KB
testcase_06 AC 714 ms
49,788 KB
testcase_07 AC 709 ms
49,368 KB
testcase_08 AC 713 ms
49,140 KB
testcase_09 AC 716 ms
49,868 KB
testcase_10 AC 737 ms
49,248 KB
testcase_11 AC 714 ms
49,412 KB
testcase_12 AC 715 ms
49,168 KB
testcase_13 AC 707 ms
49,784 KB
testcase_14 AC 707 ms
50,132 KB
testcase_15 AC 703 ms
49,324 KB
testcase_16 AC 716 ms
49,944 KB
testcase_17 AC 709 ms
49,232 KB
testcase_18 AC 708 ms
49,668 KB
testcase_19 AC 711 ms
49,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

require Integer

defmodule Main do
  def main do
    n =
      IO.gets("")
      |> String.trim()
      |> String.to_integer()

    m =
      IO.gets("")
      |> String.trim()
      |> String.to_integer()

    cond do
      Integer.is_odd(m) -> "No"
      Integer.is_even(n) || m >= 10 -> "Yes"
      true -> "No"
    end
    |> IO.puts()
  end
end
0