字符串
醉酒、冰城外
清华大学南京校区
展开
-
HDU[1358] Period 【KMP+循环节】
Description For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the prefix is a periodic string. That is, ...原创 2020-01-31 23:01:52 · 150 阅读 · 0 评论 -
2019牛客暑期多校训练营 (第七场) A String 【最小字典序+暴力】
题目描述 A string is perfect if it has the smallest lexicographical ordering among its cyclic rotations. For example: "0101" is perfect as it is the smallest string among ("0101", "1010", "0101", "1010"...原创 2019-08-12 11:24:42 · 232 阅读 · 0 评论