shiro #790(2007/07/14 01:44 GMT) [ Scheme ] Rating1/1=1.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14
(use gauche.sequence) (define (succ s) (receive (s c) (map-accum (lambda (d c) (if (> (+ d c) 25) (values 0 1) (values (+ d c) 0))) 1 (reverse (map (lambda (c) (- (char->integer c) 65)) s))) (map-to <string> (lambda (d) (integer->char (+ d 65))) (reverse (if (zero? c) s (append s '(0))))))) (let loop ((i 0) (s "A") (r '())) (if (= i 100) (print (string-join (reverse r) ", ")) (loop (+ i 1) (succ s) (cons s r))))
Rating1/1=1.00-0+
1 reply [ reply ]
shiro #791(2007/07/14 01:44 GMT) Rating0/0=0.00
にしお #1403(2007/07/24 09:52 GMT) Rating0/0=0.00
[ reply ]
shiro
#790()
[
Scheme
]
Rating1/1=1.00
Rating1/1=1.00-0+
1 reply [ reply ]