結果

問題 No.337 P versus NP
ユーザー gemmarogemmaro
提出日時 2020-04-07 16:39:47
言語 Elixir
(1.16.2)
結果
AC  
実行時間 639 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 1,087 ms
コンパイル使用メモリ 55,448 KB
実行使用メモリ 51,132 KB
最終ジャッジ日時 2023-08-30 00:00:04
合計ジャッジ時間 17,239 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 639 ms
49,380 KB
testcase_01 AC 628 ms
51,020 KB
testcase_02 AC 614 ms
49,332 KB
testcase_03 AC 639 ms
49,800 KB
testcase_04 AC 609 ms
50,272 KB
testcase_05 AC 614 ms
49,228 KB
testcase_06 AC 624 ms
49,208 KB
testcase_07 AC 619 ms
49,968 KB
testcase_08 AC 621 ms
49,268 KB
testcase_09 AC 616 ms
49,856 KB
testcase_10 AC 625 ms
49,272 KB
testcase_11 AC 611 ms
49,284 KB
testcase_12 AC 616 ms
49,428 KB
testcase_13 AC 624 ms
49,300 KB
testcase_14 AC 614 ms
49,972 KB
testcase_15 AC 620 ms
49,196 KB
testcase_16 AC 612 ms
49,052 KB
testcase_17 AC 613 ms
49,232 KB
testcase_18 AC 630 ms
51,132 KB
testcase_19 AC 622 ms
49,280 KB
testcase_20 AC 619 ms
49,340 KB
testcase_21 AC 628 ms
49,768 KB
testcase_22 AC 629 ms
49,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    [n, p] =
      IO.gets("")
      |> String.trim()
      |> String.split()
      |> Enum.map(fn s -> String.to_integer(s) end)

    cond do
      n == 1 || p == 0 -> "="
      true -> "!="
    end
    |> IO.puts()
  end
end
0