結果

問題 No.400 鏡
ユーザー gemmarogemmaro
提出日時 2020-04-07 16:47:35
言語 Elixir
(1.16.2)
結果
AC  
実行時間 620 ms / 2,000 ms
コード長 282 bytes
コンパイル時間 1,072 ms
コンパイル使用メモリ 54,736 KB
実行使用メモリ 50,284 KB
最終ジャッジ日時 2023-08-30 00:00:14
合計ジャッジ時間 9,970 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 610 ms
49,380 KB
testcase_01 AC 617 ms
49,888 KB
testcase_02 AC 619 ms
49,088 KB
testcase_03 AC 616 ms
50,284 KB
testcase_04 AC 620 ms
49,200 KB
testcase_05 AC 611 ms
49,212 KB
testcase_06 AC 615 ms
49,240 KB
testcase_07 AC 619 ms
49,216 KB
testcase_08 AC 620 ms
49,272 KB
testcase_09 AC 617 ms
49,960 KB
testcase_10 AC 619 ms
49,280 KB
testcase_11 AC 619 ms
49,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    IO.gets("")
    |> String.trim()
    |> String.reverse()
    |> String.to_charlist()
    |> Enum.map(fn c ->
      cond do
        [c] |> to_string == "<" -> ">"
        true -> "<"
      end
    end)
    |> Enum.join()
    |> IO.puts()
  end
end
0