結果

問題 No.400 鏡
ユーザー gemmarogemmaro
提出日時 2020-04-07 17:17:30
言語 Elixir
(1.16.2)
結果
AC  
実行時間 659 ms / 2,000 ms
コード長 282 bytes
コンパイル時間 991 ms
コンパイル使用メモリ 55,444 KB
実行使用メモリ 49,904 KB
最終ジャッジ日時 2023-08-30 00:01:03
合計ジャッジ時間 9,923 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 631 ms
49,304 KB
testcase_01 AC 642 ms
49,232 KB
testcase_02 AC 626 ms
49,100 KB
testcase_03 AC 636 ms
49,268 KB
testcase_04 AC 636 ms
49,124 KB
testcase_05 AC 622 ms
49,060 KB
testcase_06 AC 617 ms
49,236 KB
testcase_07 AC 635 ms
49,816 KB
testcase_08 AC 633 ms
49,308 KB
testcase_09 AC 642 ms
49,240 KB
testcase_10 AC 659 ms
49,232 KB
testcase_11 AC 640 ms
49,904 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