(use srfi.60) (define (nCr n r) (if (or (< r 0) (< n r)) 0 (let ((k 1)) (do ((i 1 (+ i 1))) ((> i r) k) (set! k (quotient (* k (- (+ n 1) i)) i)))))) (define yuki420 (let* ( (x (read)) (s (- (ash 1 31) 1)) ) (display (nCr 31 x)) (display " ") (display (if (zero? x) 0 (* s (nCr 30 (- x 1))))) (newline)))