結果

問題 No.224 文字列変更(easy)
ユーザー RinRin
提出日時 2015-08-27 16:18:29
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 513 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 11,924 KB
最終ジャッジ日時 2023-09-25 02:06:01
合計ジャッジ時間 1,889 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,708 KB
testcase_01 AC 18 ms
11,896 KB
testcase_02 AC 18 ms
11,844 KB
testcase_03 AC 18 ms
11,752 KB
testcase_04 AC 18 ms
11,744 KB
testcase_05 AC 19 ms
11,676 KB
testcase_06 AC 19 ms
11,820 KB
testcase_07 AC 18 ms
11,712 KB
testcase_08 AC 18 ms
11,704 KB
testcase_09 AC 17 ms
11,852 KB
testcase_10 AC 18 ms
11,736 KB
testcase_11 AC 18 ms
11,672 KB
testcase_12 AC 18 ms
11,680 KB
testcase_13 AC 18 ms
11,716 KB
testcase_14 AC 18 ms
11,916 KB
testcase_15 AC 18 ms
11,848 KB
testcase_16 AC 18 ms
11,780 KB
testcase_17 AC 19 ms
11,744 KB
testcase_18 AC 19 ms
11,924 KB
testcase_19 AC 19 ms
11,772 KB
testcase_20 AC 19 ms
11,816 KB
testcase_21 AC 19 ms
11,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

(let(
     (Len    (read))
     (Before (symbol->string (read)))
     (After  (symbol->string (read)))
     (CngCnt 0)
    )
  (begin
      (let loop((i 0))
        (begin
          (unless (string=? (substring Before i (+ i 1)) (substring After i (+ i 1)))
            (set! CngCnt (+ CngCnt 1))
          )
          (unless (= i (- Len 1))
            (loop (+ i 1))
          )
        )
     )
    (System.out.println CngCnt)
  )
)
0