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
相關文章
相關標籤/搜索