摘要: #include<cstdio> #include<cmath> int slove(int x) { int res,k,c,i; res=1;k=int(sqrt(x*1.0));i=1; while(++i<=k) { if(x%i) continue; c=1; do { x/=i,c++; 阅读全文
posted @ 2020-08-30 08:33 study&work 阅读(141) 评论(0) 推荐(0) 编辑
摘要: ```cpp #include #include #include using namespace std; const int N=26; const int MAXN=500005; struct Trie{ int next[MAXN][N],fail[MAXN],end[MAXN]; int root; int tot; int newnode() { for(int i=0;i que; 阅读全文
posted @ 2020-05-02 11:07 study&work 阅读(82) 评论(0) 推荐(0) 编辑