#include #include const int maxn=1000001; int pi[maxn]; char s[maxn]; void pi_function(){ int i=1,j=0; int m=strlen(s); while(i