結果

問題 No.69 文字を自由に並び替え
ユーザー gemmarogemmaro
提出日時 2020-04-14 08:04:40
言語 Elixir
(1.16.2)
結果
AC  
実行時間 647 ms / 5,000 ms
コード長 300 bytes
コンパイル時間 1,137 ms
コンパイル使用メモリ 54,568 KB
実行使用メモリ 50,156 KB
最終ジャッジ日時 2023-08-30 00:09:58
合計ジャッジ時間 12,062 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 643 ms
49,272 KB
testcase_01 AC 628 ms
49,300 KB
testcase_02 AC 626 ms
49,804 KB
testcase_03 AC 622 ms
49,292 KB
testcase_04 AC 622 ms
50,156 KB
testcase_05 AC 623 ms
49,460 KB
testcase_06 AC 630 ms
49,236 KB
testcase_07 AC 630 ms
49,240 KB
testcase_08 AC 635 ms
49,336 KB
testcase_09 AC 639 ms
49,800 KB
testcase_10 AC 647 ms
49,200 KB
testcase_11 AC 639 ms
49,380 KB
testcase_12 AC 639 ms
49,156 KB
testcase_13 AC 644 ms
49,796 KB
testcase_14 AC 636 ms
49,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    1..2
    |> Enum.map(fn _ ->
      IO.read(:line)
      |> String.trim()
      |> String.to_charlist()
      |> Enum.sort()
    end)
    |> solve
    |> IO.puts()
  end

  defp solve([a, b]) do
    cond do
      a == b -> "YES"
      true -> "NO"
    end
  end
end
0