lao_xiao
lao_xiao
全部文章
分类
归档
标签
去牛客网
登录
/
注册
lao_xiao的博客
全部文章
(共24篇)
题解 | 【模板】分数取模
#include <iostream> using namespace std; typedef long long LL; const int P = 1e9 + 7; LL qpow(int b,int c){ if(c == 0) return 1; LL ...
2026-03-25
0
15
题解 | 子数列求积
#include <iostream> using namespace std; const int M = 1e9 + 7; const int N = 1e5 + 10; long long tree[N]; int a[N]; int n,q; long long ...
2026-03-25
0
21
题解 | 游游的最长稳定子数组
#include <iostream> #include <cmath> using namespace std; const int N = 1e5 + 10; int a[N]; int f[N]; int abs(int a,int b){ if(a...
2026-03-25
0
16
题解 | 最长不下降子序列
#include <iostream> using namespace std; const int N = 5e3 + 10; int a[N]; int dp[N]; int main() { int n; cin>>n; for(int...
2026-03-21
0
22
题解 | 【模板】分组背包
#include <iostream> #include <cstring> using namespace std; const int N = 2010; int w[N],v[N],h[N]; long long f[N][N]; int ne[N],idx;...
2026-03-20
0
18
题解 | 【模板】双指针
#include <iostream> #include <unordered_map> #include <vector> #include <algorithm> using namespace std; typedef pair<int...
2026-03-20
0
14
题解 | 没有上司的舞会
#include <iostream> #include <cstring> using namespace std; const int N = 2e5 + 10; int h[N],e[N],ne[N],idx; int w[N]; int dp[N][2]; ...
2026-03-17
0
21
题解 | 小红走迷宫
#include <iostream> #include <queue> #include <unordered_map> #include <vector> #include <algorithm> #include <cstrin...
2026-03-10
0
30
题解 | 戏志才
#include <iostream> #include <cstring> #include <unordered_map> using namespace std; const int N = 1e5 + 10; int h[N],e[N],ne[N],i...
2026-03-09
0
23
题解 | 【模板】01背包(计数)
#include <iostream> #include <cstring> using namespace std; const int N = 1e4 + 10; const int M = 1e9 + 7; int v[N], w[N]; int f[N]; in...
2026-03-07
0
29
首页
上一页
1
2
3
下一页
末页