結果

問題 No.581 XOR
ユーザー gemmarogemmaro
提出日時 2020-04-18 08:37:47
言語 Elixir
(1.16.2)
結果
AC  
実行時間 623 ms / 2,000 ms
コード長 203 bytes
コンパイル時間 1,095 ms
コンパイル使用メモリ 55,332 KB
実行使用メモリ 51,060 KB
最終ジャッジ日時 2023-08-30 00:22:05
合計ジャッジ時間 8,046 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 613 ms
49,252 KB
testcase_01 AC 614 ms
49,524 KB
testcase_02 AC 611 ms
49,312 KB
testcase_03 AC 611 ms
49,412 KB
testcase_04 AC 615 ms
50,140 KB
testcase_05 AC 623 ms
49,912 KB
testcase_06 AC 620 ms
49,148 KB
testcase_07 AC 618 ms
51,060 KB
testcase_08 AC 617 ms
49,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.read(:line)
    |> String.split()
    |> Enum.map(&String.to_integer/1)
    |> solve
    |> IO.puts()
  end

  def solve([a, c]) do
    Bitwise.bxor(a, c)
  end
end
0