循环判断 i%(i-next[i]) == 0 && next[i] != 0
循环长度 i-next[i];
Powered by: 博客园 Copyright © 2024 mltang Powered by .NET 8.0 on Kubernetes