結果

問題 No.272 NOT回路
ユーザー gemmarogemmaro
提出日時 2020-03-30 18:26:29
言語 Elixir
(1.16.2)
結果
AC  
実行時間 662 ms / 1,000 ms
コード長 208 bytes
コンパイル時間 1,166 ms
コンパイル使用メモリ 54,592 KB
実行使用メモリ 50,036 KB
最終ジャッジ日時 2023-08-29 23:51:29
合計ジャッジ時間 10,350 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 627 ms
49,864 KB
testcase_01 AC 627 ms
50,036 KB
testcase_02 AC 658 ms
49,876 KB
testcase_03 AC 650 ms
49,196 KB
testcase_04 AC 662 ms
49,292 KB
testcase_05 AC 643 ms
49,416 KB
testcase_06 AC 648 ms
49,812 KB
testcase_07 AC 659 ms
49,168 KB
testcase_08 AC 631 ms
49,376 KB
testcase_09 AC 639 ms
49,088 KB
testcase_10 AC 643 ms
49,204 KB
testcase_11 AC 657 ms
49,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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