結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
コンテスト
ユーザー gemmaro
提出日時 2020-03-29 22:41:25
言語 Elixir
(1.19.5)
コンパイル:
elixirc _filename_
実行:
elixir -e Main.main
結果
AC  
実行時間 368 ms / 2,000 ms
コード長 349 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 786 ms
コンパイル使用メモリ 72,200 KB
実行使用メモリ 70,736 KB
最終ジャッジ日時 2026-06-04 14:51:35
合計ジャッジ時間 9,489 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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