摘要: 神奇项链 描述 母亲节就要到了,小 H 准备送给她一个特殊的项链。这个项链可以看作一个用小写字母组成的字符串,每个小写字母表示一种颜色。为了制作这个项链,小 H 购买了两个机器。第一个机器可以生成所有形式的回文串,第二个机器可以把两个回文串连接起来,而且第二个机器还有一个特殊的性质:假如一个字符串的 阅读全文
posted @ 2020-07-23 14:10 谁伴我流浪 阅读(246) 评论(0) 推荐(0) 编辑
摘要: POJ3974 Palindrome 描述 Andy the smart computer science student was attending an algorithms class when the professor asked the students a simple questio 阅读全文
posted @ 2020-07-23 10:24 谁伴我流浪 阅读(141) 评论(0) 推荐(0) 编辑