小康迷糊了
码龄4年
关注
提问 私信
  • 博客:6,803
    6,803
    总访问量
  • 27
    原创
  • 1,929,078
    排名
  • 36
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:山东省
  • 加入CSDN时间: 2020-11-19
博客简介:

qq_52709599的博客

查看详细资料
个人成就
  • 获得71次点赞
  • 内容获得12次评论
  • 获得29次收藏
创作历程
  • 5篇
    2024年
  • 8篇
    2022年
  • 14篇
    2021年
成就勋章
TA的专栏
  • 笔记
    1篇
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

旋转数组<vector>

【代码】旋转数组<vector>
原创
发布博客 2024.03.22 ·
101 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

数组递归建树与指针递归建树&&二叉搜索树的构造

【代码】数组递归建树与指针递归建树&&二叉搜索树的构造。
原创
发布博客 2024.03.21 ·
239 阅读 ·
3 点赞 ·
0 评论 ·
0 收藏

树连剖分求LCA

【代码】树连剖分求LCA。
原创
发布博客 2024.03.16 ·
369 阅读 ·
8 点赞 ·
0 评论 ·
9 收藏

高精度乘法

使用于高精度与int/long long乘积 ACWING。
原创
发布博客 2024.03.09 ·
323 阅读 ·
6 点赞 ·
0 评论 ·
5 收藏

【无标题】

动态的n阶乘矩阵。
原创
发布博客 2024.03.05 ·
354 阅读 ·
9 点赞 ·
1 评论 ·
6 收藏

数位DP呀呀

#include<bits/stdc++.h>using namespace std;int f[1005][3];//lm=1为有限制int a[1005];int dfs(int pos,int st,int lm){ if(pos==0) return st==2; if(f[pos][st]!=-1&&lm==0) return f[pos][st]; int x=lm?a[pos]:9; int ans=0; for(int i=0;i<
原创
发布博客 2022.04.08 ·
250 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

二分模板KKK

最大中求最小int l;int r;while(l<r){ int mid=l+r>>1; if(check(mid)) { r=mid; } else { l=mid+1; }}//l r都可,两者相等最小中求最大int l;int r;while(l<r){ int mid=l+r>>1; if(check(mid)) {
原创
发布博客 2022.04.04 ·
137 阅读 ·
1 点赞 ·
0 评论 ·
1 收藏

PTA树的遍历(递归+模拟)

#include<bits/stdc++.h>using namespace std;const int maxn=37;int zx[maxn];int hx[maxn];int n;struct node{ int l; int r;};node pp[maxn];//la,ra表示后序int build(int la,int ra,int lb,int rb){ if(lb>rb) return 0; int root
原创
发布博客 2022.04.02 ·
557 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

STRING delete 指定字符

#include<bits/stdc++.h>using namespace std;string tmp;int main(){ string A; string B; getline(cin,A); getline(cin,B); for(int i=0;i<B.size();i++) { tmp.clear(); tmp+=B[i]; int n=tmp.size();
原创
发布博客 2022.04.01 ·
467 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

线段树模板

#include<bits/stdc++.h>using namespace std;int a[1000005];int sum[1000005*4];int lazy[1000005*4];int n,m;void push_down(int rt,int l,int r){ if(lazy[rt]!=0) { int mid=(l+r)>>1; lazy[2*rt]+=lazy[rt]; lazy[2
原创
发布博客 2022.03.30 ·
244 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

无向图染色问题 DFS 剪枝 回溯

#include<bits/stdc++.h>using namespace std;int known[101][101];int p[101][101];int n,m;int res=INT_MAX;void dfs(int x,int total){ if(total>=res) return; if(x==n+1){ res=min(total,res); return; } for(int i=1;i<=total;i++){ int
原创
发布博客 2022.03.30 ·
165 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

POJ1724

#include<cstdio>#include<cstring>#include<algorithm>#include<queue>using namespace std;int n,k;struct node{ int to; int next; int w; int l; node(){} node(int a,int b,int c,int d):to(a),next(b),w(c),l(d
原创
发布博客 2022.03.09 ·
80 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

森森快递丫

线段树+贪心算法(区间修改)#include<bits/stdc++.h>using namespace std;int minn[200005*4];int arr[200005];int lazy[200005*4];void push_down(int rt){ if(!lazy[rt]) return; lazy[2*rt]+=lazy[rt]; lazy[2*rt+1]+=lazy[rt]; minn[2*rt]-=lazy
原创
发布博客 2022.02.05 ·
425 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

强连通分量缩点 POJ 2186

#include <cstdio>#include <iostream>#include <algorithm>#include <cstring>#include <string>#include <stdlib.h>#include <vector>#include <queue>#include <cmath>#include <stack>#include &l
原创
发布博客 2021.10.07 ·
120 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

hdu2222 AC自动机

#include <stdlib.h>#include <string.h>struct Node{ int cnt;//是否为该单词的最后一个结点 Node *fail;//失败指针 Node *next[26];//Trie中每个结点的各个节点 }*queue[500005];//队列,方便用BFS构造失败指针 char s[1000005];//主字符串 char keyword[55];//需要查找的单词 Node *root;//头结点 void
原创
发布博客 2021.07.27 ·
100 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

线段树加树链剖分解决树上问题

#include<bits/stdc++.h>using namespace std;const int maxn=1e5+5;int top[maxn],size[maxn],son[maxn],fa[maxn],dep[maxn];int id[maxn];int w[maxn];int rev[maxn];int Sum,Max;struct node{ int to node(int a) { to=a; }};vec
原创
发布博客 2021.07.25 ·
114 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

树上点分治模板题p3806

// luogu-judger-enable-o2#include <cstdio>#include <cstring>#include <algorithm>using namespace std;#define inf 999999999 int n,m,len=0,Size;struct node{int x,y,z,next;};node e[20010];int first[10010];int root,ms,size[10010],ms
原创
发布博客 2021.07.22 ·
83 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

主席树 求区间第k小问题

#include<bits/stdc++.h>using namespace std;vector<int> v;const int maxn=2e5+5;struct node{ int l,r,sum;}hjt[maxn*40];int cnt,root[maxn];int a[maxn];void insert(int l,int r,int pre,int &now,int p){ hjt[++cnt]=hjt[pre];
原创
发布博客 2021.07.20 ·
67 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

马拉车算法 求回文

#include<bits/stdc++.h>using namespace std;const int MAXN = 110005;string expand(string s){ string str="*#"; for(int i=0;i<s.size();i++) { str+=s[i]; str+='#'; } return str;}string man(string s){ stri
原创
发布博客 2021.07.19 ·
91 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

二分图的最大匹配经典例题 hdu4185

#include"stdio.h"#include"string.h"#include"stdlib.h"#include"vector"using namespace std;#define N 605#define M 6005vector<int>g[M];int id[N][N],cnt;int mark[M],link[M];int dir[4][2]={0,1,0,-1,-1,0,1,0};char str[N][N];int find(int k){
原创
发布博客 2021.07.18 ·
223 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多