Skip to content

Instantly share code, notes, and snippets.

@TonyMooori
Created July 25, 2018 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TonyMooori/597c6e374153b828816a7e812464db64 to your computer and use it in GitHub Desktop.
Save TonyMooori/597c6e374153b828816a7e812464db64 to your computer and use it in GitHub Desktop.
アルゴリズムパズル6実装例
; 6. 指数え
(defparameter *fingers*
(list
"index finger" "thumb" "index finger" "middle finger"
"ring finger" "little finger" "ring finger" "middle finger"))
(defun solve-6 (n)
(nth (mod n 8) *fingers*))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment