=s[i]; } s.clear(); if(cas==0) return ; s+=st[cas-1]; for(i=cas
num[cas++]=next[i]; i=next[i]; } printf("%d",num[cas-1]); for(i=cas