![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符串——最小表示法
pxlsdz
冲就完了!
展开
-
HDU 2609 最小表示法 模板提
Problem Description Give you n ( n < 10000) necklaces ,the length of necklace will not large than 100,tell me How many kinds of necklaces total have.(if two necklaces can equal by rotating ,we say ...原创 2019-02-26 22:10:34 · 227 阅读 · 0 评论 -
51nod 1282 时钟 思维+最小表示法+Hash
1282 时钟 1.0 秒 131,072.0 KB 40 分 4级题 有N个时钟,每个时钟有M个指针,P个刻度。时钟是圆形的,P个刻度均分整个圆。每个时钟每个指针指向整数刻度,并且每个时钟自身指针指向的数字都不同。你可以任意旋转时钟的表盘,但是你不能转指针。问最后有多少对时钟可以变成相同的状态。 例如:N = 5,M = 2,P = 4,5个时钟的数据如下{1,...原创 2019-08-08 22:02:30 · 203 阅读 · 0 评论