摘要: void kmp_pre(char x[],int m,int next[]){ int i=0,j; j=next[0]=-1; while(i=m){ ans++; j=next[j]; } } return ans; } 阅读全文
posted @ 2019-02-24 23:09 YFR718 阅读(111) 评论(0) 推荐(0) 编辑
摘要: F. Asya And Kittens time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output F. Asya And Kittens 阅读全文
posted @ 2019-02-24 09:14 YFR718 阅读(351) 评论(0) 推荐(0) 编辑
摘要: E. String Multiplication time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Roman and Denis 阅读全文
posted @ 2019-02-24 09:09 YFR718 阅读(346) 评论(0) 推荐(0) 编辑
摘要: D. Gourmet choice time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Gourmet choice time 阅读全文
posted @ 2019-02-24 09:01 YFR718 阅读(643) 评论(0) 推荐(0) 编辑