2012年3月4日
摘要: Problem DescriptionFor 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, for each i (2 <= i <= N) we want to know the largest K > 1 (if there is one) such that 阅读全文
posted @ 2012-03-04 13:50 万里心晴 阅读(180) 评论(0) 推荐(0) 编辑