src/problems/aspc.lisp @ 888f5c30c949
Enhance the sum/prod macros Why not?
| author | Steve Losh <steve@stevelosh.com> |
|---|---|
| date | Mon, 20 Jan 2020 14:19:26 -0500 |
| parents | 8f6ef53eac55 |
| children | (none) |
(defpackage :rosalind/aspc (:use :cl :rosalind :losh :iterate)) (in-package :rosalind/aspc) (define-problem aspc (data stream) "6 3" "42" (let ((n (read data)) (m (read data))) (u:Σ (k m n :modulo 1000000) (u:binomial-coefficient n k)))) #; Scratch --------------------------------------------------------------------