leque #7188(2008/08/18 02:05 GMT) [ Scheme ] Rating0/0=0.00
1 2 3 4 5 6 7 8 9 10 11
(use srfi-1) (define (main args) (let ((n (string->number (cadr args)))) (print 0) (let loop ((i 1)) (receive (xs ys) (partition (cut <= <> n) (map (cut * i <>) '(1 2 3 4 5 6 7 8 9))) (for-each print xs) (if (pair? ys) 0 (loop (* i 10)))))))
Rating0/0=0.00-0+
[ reply ]
leque
#7188()
[
Scheme
]
Rating0/0=0.00
Rating0/0=0.00-0+
[ reply ]