結果

問題 No.69 文字を自由に並び替え
ユーザー RinRin
提出日時 2015-09-05 21:57:07
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 434 bytes
コンパイル時間 115 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 13,744 KB
最終ジャッジ日時 2023-08-20 23:08:19
合計ジャッジ時間 1,490 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,864 KB
testcase_01 AC 19 ms
11,920 KB
testcase_02 AC 18 ms
11,736 KB
testcase_03 AC 18 ms
13,744 KB
testcase_04 AC 18 ms
11,884 KB
testcase_05 AC 19 ms
11,672 KB
testcase_06 AC 19 ms
11,784 KB
testcase_07 AC 18 ms
11,788 KB
testcase_08 AC 19 ms
11,792 KB
testcase_09 AC 19 ms
11,780 KB
testcase_10 AC 18 ms
11,684 KB
testcase_11 AC 18 ms
11,692 KB
testcase_12 AC 19 ms
11,748 KB
testcase_13 AC 18 ms
11,776 KB
testcase_14 AC 19 ms
11,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (System.out.println x)
  (begin
    (display x)
    (newline)
  )
)

(let (
      (A (sort (string->list (symbol->string (read))) (lambda (x y) (< (char->integer x) (char->integer y)))))
      (B (sort (string->list (symbol->string (read))) (lambda (x y) (< (char->integer x) (char->integer y)))))
     )
  (if (string=? (list->string A) (list->string B))
      (System.out.println "YES")
      (System.out.println "NO")
  )
)
0