Count the string Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3797 Accepted Submission(s): 1776 Problem Description It is well known that AekdyCoin is good at string problems as well as nu…
#include<cstdio> #include<iostream> #include<string> #include<cstring> #include<algorithm> #include<queue> using namespace std; void getnext(char *t, int *next, int lent) { int i = 0, j = -1; next[0] = -1; while (i <…