最小/大表示法
文章平均质量分 79
i-unique
擅长各种姿势划水
展开
-
HDU 2609 How many(最小表示法)
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 the two necklaces are some). For example 0110 express a necklace, you can rot原创 2017-08-23 16:22:19 · 297 阅读 · 0 评论 -
HDU 3374 String Problem(最大最小表示法模板+KMP+next数组的运用)
Give you a string with length N, you can generate N strings by left shifts. For example let consider the string “SKYLONG”, we can generate seven strings: String Rank SKYLONG 1 KYLONGS 2 YLONGSK 3 LONGSKY 4 ONGSKYL 5 NGSKYLO 6 GSKYLON 7 and lexicog原创 2017-08-23 15:27:26 · 553 阅读 · 0 评论 -
ZOJ 1729 Hidden Password(最小表示法模板题)
Some time the programmers have very strange ways to hide their passwords. See for example how Billy "Hacker" Geits hide his password. Billy chooses a string S composed of small Latin letters with length L. Then he makes all L-1 one-letter left cyclic shift原创 2017-08-24 09:53:01 · 337 阅读 · 0 评论 -
poj 1509 Glass Beads(最小表示法模板题)
Once upon a time there was a famous actress. As you may expect, she played mostly Antique Comedies most of all. All the people loved her. But she was not interested in the crowds. Her big hobby were beads of any kind. Many bead makers were working for her原创 2017-08-28 19:55:05 · 393 阅读 · 0 评论 -
模板总结
属于自己的模板。。。比赛防忘记赛前复习向原创 2017-07-24 10:25:30 · 1551 阅读 · 1 评论