摘要:
输入一个文本,找出所有不同的单词(连续的字母序列),按字典序从小到大输出。 单词不区分大小写。 样例输入: Adventures in Disneyland Two blondes were going to Disneyland when they came to a fork in the ro 阅读全文
摘要:
从左到右有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上方的 阅读全文