hojiahao
hojiahao
全部文章
分类
归档
标签
去牛客网
登录
/
注册
hojiahao的博客
全部文章
(共3篇)
题解 | 小红的“质数”寻找
#include <bits/stdc++.h> using namespace std; const int MAXN = 900010; // 数位和最大值附近 bitset<MAXN> isPrime; // 标记质数 // 预处理质数 void sieve(...
2025-03-07
0
37
题解 | 小红的“质数”寻找
#include <bits/stdc++.h> using namespace std; const int MAXN = 900010; // 数位和最大值附近 bitset<MAXN> isPrime; // 标记质数 // 预处理质数 void sieve(...
2025-03-07
0
48
题解 | 小红的好排列
#include <iostream> using namespace std; typedef long long LL; const LL MOD = 1e9 + 7; // 模数 const int N = 1000010; // n的最大值加一些余量 LL fact[N],...
2025-03-07
0
89