Add tags

Add tags to the following comment
あれこれ考えていたらこれで解が出るような気がしました。
探索を書かせるのが趣旨だったらごめんなさい。
1
2
3
(defun water-puzzle (a b c)
  (loop for (x y) in `((,a ,b) (,b ,c) (,c ,a))
    if (zerop (mod (- x y) 3)) minimize (max x y)))

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...