結果

問題 No.224 文字列変更(easy)
コンテスト
ユーザー Common Lisp
提出日時 2024-10-08 17:25:44
言語 Common Lisp
(sbcl 2.6.3)
コンパイル:
sbclc _filename_
実行:
sbcl --script Main.fasl
結果
AC  
実行時間 9 ms / 5,000 ms
コード長 304 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 373 ms
コンパイル使用メモリ 37,692 KB
実行使用メモリ 22,528 KB
最終ジャッジ日時 2026-04-25 01:14:07
合計ジャッジ時間 2,001 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 25 APR 2026 01:14:02 AM):

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

ソースコード

diff #
raw source code

; 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