冷艳的西红柿刷牛客
冷艳的西红柿刷牛客
全部文章
分类
归档
标签
去牛客网
登录
/
注册
冷艳的西红柿刷牛客的博客
全部文章
(共111篇)
题解 | 小A的线段(easy version)
#include <iostream> #include <vector> using namespace std; int line[10][2]; int n, m, ans; const int p = 998244353; bool judge(vector...
2025-10-27
0
23
题解 | 火车进站
#include <iostream> #include <set> #include <stack> using namespace std; int inSeq[10], vis[10]; int n; //判断序列是否合法 bool judge(int...
2025-10-27
0
20
题解 | kotori和素因子
#include <iostream> #include <vector> #include <set> using namespace std; int vis[400], minVal = 10000000000; vector<set<int&...
2025-10-27
0
25
题解 | 数组分组
#include <iostream> #include <algorithm> using namespace std; typedef long long ll; int n, target; int vis[30], a[30]; bool dfs(int dee...
2025-10-24
0
12
题解 | 模意义下最大子序列和(Easy Version)
#include <iostream> #include <algorithm> using namespace std; typedef long long ll; int n, m; ll maxVal = 0; int vis[16], a[16]; //这题和之...
2025-10-24
0
25
题解 | 全排列
#include <iostream> using namespace std; int n; int vis[10]{0}; //c++引用传递需要显示指定为int *a,使用reference需要显示指定数组大小,所以可以使用指针方便一些 //相对于Java,可以使用&i...
2025-10-24
0
25
题解 | 迷宫寻路
#include <iostream> #include<algorithm> #include<cmath> using namespace std; int n, m; char c[101][101]; //0表示未确定, -1表示不能,1表示可以,这个c...
2025-10-23
0
27
题解 | 中位数之和
#include <iostream> #include<algorithm> #include<cmath> using namespace std; typedef long long ll; const ll p = 1000000007; const...
2025-10-23
0
21
题解 | 长椅安置
#include <iostream> using namespace std; typedef long long ll; //计算m * (m - 1) * ... *(m - n + 1) ll factorial(ll m, ll n) { ll result = 1;...
2025-10-23
0
18
题解 | 【模板】组合数
#include <iostream> #include<algorithm> #include<cmath> using namespace std; typedef long long ll; const ll p = 1000000007; const...
2025-10-23
0
18
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页