src/problems/aspc.lisp @ 8f6ef53eac55

ASPC, portability fixes
author Steve Losh <steve@stevelosh.com>
date Mon, 20 Jan 2020 13:41:09 -0500
parents (none)
children 888f5c30c949
(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)))
    (iterate
      (for k :from m :to n)
      (u:summing* (u:binomial-coefficient n k) :modulo 1000000))))


#; Scratch --------------------------------------------------------------------