This comment is reply for 1049 匿名: 変形26進法ですね (アルファベットの繰り上がり). Go to thread root.
kacchi #1053(2007/07/18 05:46 GMT) [ Scheme ] Rating0/0=0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14
(define (convert n) (let* ((nums "ABCDEFGHIJKLMNOPQRSTUVWXYZ") (digit (string (string-ref nums (remainder (- n 1) (string-length nums))))) (n (quotient (- n 1) (string-length nums)))) (if (not (zero? n)) (string-append (convert n) digit) digit))) (let loop ((n 1) (m 1000)) (cond ((<= n m) (display (convert n)) (and (not (= n m)) (display ", ")) (loop (+ n 1) m)) (else (display #\newline))))
Rating0/0=0.00-0+
[ reply ]
kacchi
#1053()
[
Scheme
]
Rating0/0=0.00
Rating0/0=0.00-0+