(define (count-W-in-string s) (define (rec idx count) (if (= idx (string-length s)) count (rec (+ idx 1) (if (char=? (string-ref s idx) #\W) (+ count 1) count)))) (rec 0 0)) (define yuki712 (let* ( (n (read)) (m (read)) (_ (read-line)) (s "") ) (do ((i 0 (+ i 1))) ((= i n)) (set! s (string-append s (read-line))) ) (write (count-W-in-string s)) (newline)))