摘要:
题目链接:http://poj.org/problem?id=2406题目大意:如果n%(n-next[n])==0,则存在重复连续子串,长度为n-next[n]。例如: a b a b a bnext:-1 0 0 1 2 3 4next[n]==4,代表着,前缀abab与后缀abab相等的最... 阅读全文
posted @ 2014-08-06 15:48
若忆_star
阅读(185)
评论(0)
推荐(0)
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4506题目大意;找规律,判断k的t次幂前面的系数。 1 #include 2 #include 3 using namespace std; 4 5 __int64 fun(__int64 a,__... 阅读全文
posted @ 2014-08-06 14:16
若忆_star
阅读(193)
评论(0)
推荐(0)
浙公网安备 33010602011771号