結果

問題 No.272 NOT回路
ユーザー 3qvwn3qvwn
提出日時 2019-07-05 23:50:54
言語 Elixir
(1.16.2)
結果
AC  
実行時間 629 ms / 1,000 ms
コード長 173 bytes
コンパイル時間 1,148 ms
コンパイル使用メモリ 56,280 KB
実行使用メモリ 49,848 KB
最終ジャッジ日時 2023-08-29 23:42:14
合計ジャッジ時間 10,519 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 627 ms
49,824 KB
testcase_01 AC 629 ms
49,212 KB
testcase_02 AC 619 ms
49,844 KB
testcase_03 AC 616 ms
49,124 KB
testcase_04 AC 619 ms
49,208 KB
testcase_05 AC 619 ms
49,384 KB
testcase_06 AC 624 ms
49,848 KB
testcase_07 AC 629 ms
49,116 KB
testcase_08 AC 617 ms
49,152 KB
testcase_09 AC 618 ms
49,276 KB
testcase_10 AC 620 ms
49,364 KB
testcase_11 AC 616 ms
48,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do 
  def main do
    IO.gets("") |> String.trim |> String.to_integer |> out |> IO.puts
  end
  
  def out(1) do
   0
  end
   
  def out(0) do
   1
  end
end
0