摘要: D. Blue-Red Permutation 想到一个假算法 阅读全文
posted @ 2021-11-04 22:38 juuich 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 线性筛 int P[Max],cnt; bool vis[Max]; int GetP(int n) { pos(i,1,n) vis[i]=true; vis[1]=false; pos(i,2,n) { if(vis[i]) P[++cnt]=i; for(int j=1;j<=cnt && i 阅读全文
posted @ 2021-11-04 12:15 juuich 阅读(31) 评论(0) 推荐(0) 编辑