結果
| 問題 | No.69 文字を自由に並び替え | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-01-14 11:04:54 | 
| 言語 | Common Lisp (sbcl 2.5.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 9 ms / 5,000 ms | 
| コード長 | 422 bytes | 
| コンパイル時間 | 76 ms | 
| コンパイル使用メモリ | 27,648 KB | 
| 実行使用メモリ | 21,888 KB | 
| 最終ジャッジ日時 | 2024-09-28 01:58:00 | 
| 合計ジャッジ時間 | 842 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 15 | 
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 28 SEP 2024 01:57:59 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.009
ソースコード
; variables
(defparameter *str_a* "")
(defparameter *str_b* "")
; functions
(defun input-strings ()
  (setf *str_a* (read-line))
  (setf *str_b* (read-line))
)
(defun check-same-str-p (str1 str2)
  (equal
    (sort (coerce str1 'list) #'char-lessp)
    (sort (coerce str2 'list) #'char-lessp))
)
(defun n69 ()
  (input-strings)
  (if (check-same-str-p *str_a* *str_b*)
    (princ "YES")
    (princ "NO")
    )
)
(n69)
            
            
            
        