随笔分类 - 最小表示法
摘要:Problem Description Give you n ( n < 10000) necklaces ,the length of necklace will not large than 100,tell meHow many kinds of necklaces total have.(i
阅读全文
摘要:链接:https://ac.nowcoder.com/acm/contest/887/A来源:牛客网 题目描述 A string is perfect if it has the smallest lexicographical ordering among its cyclic rotations
阅读全文
摘要:Description 给定两个项链的表示,判断他们是否可能是一条项链。 给定两个项链的表示,判断他们是否可能是一条项链。 Input 输入文件只有两行,每行一个由0至9组成的字符串,描述一个项链的表示(保证项链的长度是相等的)。 输入文件只有两行,每行一个由0至9组成的字符串,描述一个项链的表示(
阅读全文