Climbing Worm

题目描述   An inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a minute before climbing again. During the rest, it slips down d
相关文章
相关标签/搜索