Created
August 21, 2012 23:32
-
-
Save nomeaning777/3420443 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let ((pat (make-array 402 :initial-element 0))) | |
(setf (aref pat 0) 1) | |
(dolist (coin '(1 2 5 10 20 50 100 200)) | |
(dotimes (i 201) | |
(incf (aref pat (+ i coin)) (aref pat i)))) | |
(print (aref pat 200))) | |
; 73682 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment