满加
满加
全部文章
分类
归档
标签
去牛客网
登录
/
注册
满加的博客
全部文章
(共51篇)
题解 | 数位差与数值和的构造
C++ 找规律额 #include <cmath> #include <iostream> using namespace std; int main() { int t, n; cin >> t; while (t--) { ...
2025-08-27
0
6
题解 | 【模板】巴什博弈
C++ 巴什博弈:若 n 为 k+1 的倍数,则先手必败 #include <iostream> using namespace std; int main() { int t, n, m; cin >> t; while (t--) { ...
2025-08-26
0
9
题解 | 甜蜜的博弈
C++ #include <iostream> using namespace std; int main() { int t, n; cin >> t; while (t--) { cin >> n; /...
2025-08-26
0
12
题解 | 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
11
题解 | 二进制数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
10
题解 | 被打乱的异或和
C++ 把握异或的规律 #include <iostream> #include <vector> using namespace std; int main() { int t, n; cin >> t; while (t--) { ...
2025-08-24
0
11
题解 | 小红的排列构造①
C++ #include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; // n=1,2 无解 if (n==1 |...
2025-08-22
0
13
题解 | 构造数独
C++ ① B = k * E ② 循环矩阵,每一行移一位 #include <iostream> using namespace std; int main() { int n, k; // 严格来说,一行/列不能出现重复元素,但题目未要求 // 仅要求所有元...
2025-08-22
0
12
题解 | 构造数对
C++ ①暴力 ②令a=b,当b<=x且b^2>x时,符合条件(不知道不满足时其他也都不满足怎么证明) #include <iostream> using namespace std; int main() { int x; cin >> x; ...
2025-08-22
0
10
题解 | 最大 FST 距离
C++ 注意下标 10^5*10^5 = 10^10 > 2*10^9超出 int 表示范围 #include <climits> #include <iostream> #include <vector> using namespace std; int...
2025-08-21
0
9
首页
上一页
1
2
3
4
5
6
下一页
末页