摘要: 数论 线性筛 枚举倍数 int p[N], f[N], idx; void sieve() { n = read(), f[0] = f[1] = 1; for(int i = 2; i <= n; i++) { if(!f[i]) p[++idx] = i; for(int j = 1 ;j <= 阅读全文
posted @ 2025-01-18 09:56 Hirasawayuiii 阅读(131) 评论(0) 推荐(1)