Goldminer
Goldminer
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Goldminer的博客
全部文章
(共25篇)
题解 | 小红的好排列
#include <iostream> using namespace std; int main() { int n; cin >> n; // 计算 3 的倍数的个数 int num_triples = n / 3; // 1 到 n...
2025-04-28
0
11
题解 | 小红的“质数”寻找
#include <iostream> // 输入输出流 #include <string> // 字符串处理 #include <vector> // 动态数组 vector #include <algorithm&g...
2025-04-28
0
15
题解 | 小红的01子序列计数(hard)
#include <iostream> #include <string> using namespace std; #define rep(i, a, b) for (int i = (a), _##i = (b); i <= _##i; ++i) using l...
2025-04-28
0
10
题解 | 小红的二叉树
#include<bits/stdc++.h> using namespace std; const int mod=1e9+7; int n; int main(){ cin >> n; // 特殊情况处理 if(n == 1) { ...
2025-04-25
0
14
题解 | 在树上游玩
#include <iostream> #include <vector> using namespace std; typedef long long LL; const int MOD = 1e9 + 7; const int maxn = 200005; bool vi...
2025-04-25
0
15
题解 | 翻之
#include <iostream> #include <string> #include <vector> #include <unordered_map> using namespace std; int main() { // 读取...
2025-04-24
0
12
题解 | 计树
#include <iostream> #include <vector> #include <queue> #include <algorithm> using namespace std; const int MAXN = 1e5 + 5; /...
2025-04-24
0
14
题解 | 1or0
#include <bits/stdc++.h> // 包含常用的头文件,方便使用标准库功能 using namespace std; // 使用标准命名空间,避免频繁使用 std:: 前缀 using ll = long long; // 定义长整型的别名,便于代码简...
2025-04-23
0
23
题解 | 隐匿社交网络
#include <bits/stdc++.h> using namespace std; #define ll unsigned long long #define fo(i,a,b) for(int i=a;i<b;i++) // 定义一个循环宏,用于简化循环代码 vecto...
2025-04-23
0
18
题解 | 小红走网格
#include <iostream> // 包含输入输出流相关的头文件 #include <vector> // 包含 vector 容器相关的头文件 using namespace std; // 使用标准命名空间,避免重复写 std:: // 自定义 gcd 函...
2025-04-23
0
16
首页
上一页
1
2
3
下一页
末页