摘要: 从左到右有n个木块,编号为0-n-1,要求模拟以下4种操作(下面a和b都是木块编号)。 move a onto b: 把a和b上方的木块全部归位,然后把a摞到b上面。 move a over b: 把a上方的木块全部归位,然后把a及上面的木块整体摞到b上面。 pile a onto b: 把b上方的 阅读全文
posted @ 2020-12-12 12:07 Vincent-yuan 阅读(173) 评论(0) 推荐(0) 编辑