lao_xiao
lao_xiao
全部文章
分类
归档
标签
去牛客网
登录
/
注册
lao_xiao的博客
全部文章
(共29篇)
题解 | 【模板】双指针
#include <iostream> #include <unordered_map> #include <vector> #include <algorithm> using namespace std; typedef pair<int...
2026-03-20
0
47
题解 | 没有上司的舞会
#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
50
题解 | 小红走迷宫
#include <iostream> #include <queue> #include <unordered_map> #include <vector> #include <algorithm> #include <cstrin...
2026-03-10
0
55
题解 | 戏志才
#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
51
题解 | 【模板】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
1
57
题解 | 完全背包前置题
#include <iostream> #include <cstring> using namespace std; const int N = 1e3 + 10; int v[N]; bool f[N]; int main() { int n,k; ...
2026-03-06
0
61
题解 | 完全背包前置题
#include <iostream> #include <cstring> using namespace std; const int N = 1e3 + 10; int v[N]; bool f[N][N]; int main() { int n,k; ...
2026-03-06
0
46
题解 | 小红的树
#include <iostream> using namespace std; const int N = 110; int cnt[N]; int main() { int n,k; cin>>n>>k; // cout<...
2026-02-26
0
64
题解 | 小红的01子序列构造(easy)
#include <iostream> #include <string> using namespace std; int cnt[3]; int main() { int n; long long k; cin>>n>>...
2026-02-25
0
62
题解 | 01背包前置题
#include <iostream> using namespace std; const int N = 1e3 + 10; int a[N]; int f[N]; int main() { int n,k; cin>>n>>k; ...
2026-02-25
0
50
首页
上一页
1
2
3
下一页
末页