結果
問題 |
No.224 文字列変更(easy)
|
ユーザー |
![]() |
提出日時 | 2015-08-24 15:05:33 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 542 bytes |
コンパイル時間 | 29 ms |
コンパイル使用メモリ | 6,688 KB |
実行使用メモリ | 16,512 KB |
最終ジャッジ日時 | 2024-07-18 13:08:57 |
合計ジャッジ時間 | 1,426 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 22 |
ソースコード
(define (System.out.println x) (begin (display x) (newline) ) ) (let( (Len (read (current-input-port))) (Before (read (current-input-port))) (After (read (current-input-port))) (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) ) )