結果

問題 No.69 文字を自由に並び替え
ユーザー 3qvwn3qvwn
提出日時 2019-07-04 00:21:28
言語 Elixir
(1.16.2)
結果
AC  
実行時間 637 ms / 5,000 ms
コード長 290 bytes
コンパイル時間 1,151 ms
コンパイル使用メモリ 55,428 KB
実行使用メモリ 50,376 KB
最終ジャッジ日時 2023-08-29 23:39:23
合計ジャッジ時間 12,167 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 626 ms
49,620 KB
testcase_01 AC 635 ms
49,796 KB
testcase_02 AC 634 ms
49,480 KB
testcase_03 AC 625 ms
50,096 KB
testcase_04 AC 624 ms
49,720 KB
testcase_05 AC 637 ms
49,540 KB
testcase_06 AC 635 ms
50,320 KB
testcase_07 AC 635 ms
50,232 KB
testcase_08 AC 634 ms
50,060 KB
testcase_09 AC 632 ms
50,140 KB
testcase_10 AC 634 ms
49,756 KB
testcase_11 AC 632 ms
49,480 KB
testcase_12 AC 634 ms
49,776 KB
testcase_13 AC 635 ms
49,640 KB
testcase_14 AC 634 ms
50,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do 
  def main do
    [a,b] = IO.stream(:stdio, :line) |> Enum.take(2) |> Enum.map(&String.trim/1) |> Enum.map(&String.codepoints/1) |> Enum.map(&Enum.sort/1)
    (a == b) |> out |> IO.puts
  end
  
  def out(true) do
    "YES"
  end
  
  def out(false) do
    "NO"
  end
end
0