满加
满加
全部文章
分类
归档
标签
去牛客网
登录
/
注册
满加的博客
全部文章
(共53篇)
题解 | 有向二分图构造
C++ 随机数构造 #include <iostream> #include <random> #include <vector> using namespace std; struct Edge { int u, v, id; }; int main...
2025-08-29
0
25
题解 | 余数求和
C++ 找到余数相同的部分 #include <iostream> using namespace std; int main() { long long a, b; cin >> a >> b; long long s = a*b; ...
2025-08-29
0
24
题解 | 数位差与数值和的构造
C++ 找规律额 #include <cmath> #include <iostream> using namespace std; int main() { int t, n; cin >> t; while (t--) { ...
2025-08-27
1
27
题解 | 【模板】巴什博弈
C++ 巴什博弈:若 n 为 k+1 的倍数,则先手必败 #include <iostream> using namespace std; int main() { int t, n, m; cin >> t; while (t--) { ...
2025-08-26
0
18
题解 | 甜蜜的博弈
C++ #include <iostream> using namespace std; int main() { int t, n; cin >> t; while (t--) { cin >> n; /...
2025-08-26
0
31
题解 | Poi 的新加法(Easy Version)
C++ 暴力求解 注意元素类型为long long,异或xor符号为^ #include <iostream> #include <vector> using namespace std; int main() { int t, n, q; cin >...
2025-08-26
0
22
题解 | 二进制数1
C++ #include <iostream> using namespace std; int main() { long long x; cin >> x; int cnt=0; while (x) { if (x%2) ...
2025-08-24
0
37
题解 | 被打乱的异或和
C++ 把握异或的规律 #include <iostream> #include <vector> using namespace std; int main() { int t, n; cin >> t; while (t--) { ...
2025-08-24
0
36
题解 | 小红的排列构造①
C++ #include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; // n=1,2 无解 if (n==1 |...
2025-08-22
0
33
题解 | 构造数独
C++ ① B = k * E ② 循环矩阵,每一行移一位 #include <iostream> using namespace std; int main() { int n, k; // 严格来说,一行/列不能出现重复元素,但题目未要求 // 仅要求所有元...
2025-08-22
0
27
首页
上一页
1
2
3
4
5
6
下一页
末页