結果

問題 No.69 文字を自由に並び替え
ユーザー MOD9cXWdOsRxvPyMOD9cXWdOsRxvPy
提出日時 2022-10-31 02:09:00
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 225 bytes
コンパイル時間 54 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 13,784 KB
最終ジャッジ日時 2023-09-22 00:36:02
合計ジャッジ時間 1,670 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
11,684 KB
testcase_01 AC 19 ms
11,520 KB
testcase_02 AC 19 ms
11,740 KB
testcase_03 AC 19 ms
11,680 KB
testcase_04 AC 18 ms
11,780 KB
testcase_05 AC 19 ms
11,672 KB
testcase_06 AC 19 ms
11,756 KB
testcase_07 AC 18 ms
11,588 KB
testcase_08 AC 19 ms
11,772 KB
testcase_09 AC 19 ms
11,760 KB
testcase_10 AC 18 ms
11,660 KB
testcase_11 AC 19 ms
13,784 KB
testcase_12 AC 19 ms
11,824 KB
testcase_13 AC 19 ms
11,776 KB
testcase_14 AC 19 ms
11,572 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env gosh

(define (main _)
  (let ([a (read-line)][b (read-line)])
    (display
     (if
      (equal?
       (sort (string-split a ""))
       (sort (string-split b "")))
      "YES" "NO"))
    )
  (newline)
  0)
0