Comment detail

水の移し替えパズル (Nested Flatten)

This comment is reply for 3557 kozima: あれこれ考えていたらこれで解が出るような...(水の移し替えパズル). Go to thread root.

差が全部3の倍数であるときの挙動が(僕がCommonLispを読めないため)よくわかりませんでした。
その場合
(min (max a b) (max b c) (max c a))
と同じになりますから、a, b, c のうち二番目に大きいものが返るはずです。

Index

Feed

Other

Link

Pathtraq

loading...