1、一般后台会报primary shard is not active Timeout: …
出现这种问题表示该索引是只读了,没办法进行shard及存储操作,优先排除是系统存储盘满了
2、通过监控工具查看(cerebro)
发现该索引shard 1 损坏 也可以通过命令进行查看
GET _cluster/allo…
解析: 分解每一个数,并且记录其前面相同素因子的位置,然后每次加上这段距离乘后面一直到结尾的距离。
#include<bits/stdc.h>
using namespace std;
const int N1e65;
int n,a[N];
int t[N],idx;
int pre[N];
void func(int x){idx0;f…