結果

問題 No.224 文字列変更(easy)
ユーザー Common Lisp
提出日時 2024-10-08 17:25:44
言語 Common Lisp
(sbcl 2.5.0)
結果
AC  
実行時間 10 ms / 5,000 ms
コード長 304 bytes
コンパイル時間 940 ms
コンパイル使用メモリ 39,160 KB
実行使用メモリ 29,888 KB
最終ジャッジ日時 2024-10-08 17:25:47
合計ジャッジ時間 1,794 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 08 OCT 2024 05:25:44 PM):

; wrote /home/judge/data/code/Main.fasl
; compilation finished in 0:00:00.097

ソースコード

diff #

; for で一文字ずつ比較する
(defun main ()
  (let* ((_ (read))
         (s1 (read-line))
         (s2 (read-line))
         (ans (loop for c1 across s1
                    for c2 across s2
                    count (char/= c1 c2))))
    (declare (ignore _))
    (princ ans)
    (terpri)))
(main)
0