会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
nik-努力者
博客园
首页
博问
闪存
新随笔
订阅
管理
2020年8月7日
C/C++ printf原理
摘要: 一. 何谓可变参数int printf( const char* format, ...); 这是使用过C语言的人所再熟悉不过的printf函数原型,它的参数中就有固定参数format和可变参数(用”…”表示). 而我们又可以用各种方式来调用printf,如:printf("%d",value);
阅读全文
posted @ 2020-08-07 20:52 wyhbadly
阅读(433)
评论(0)
推荐(0)
编辑
2019年9月19日
树状数组
摘要: #include <iostream> #include <cstdio> using namespace std; const int maxn=5e5+10; long long a[maxn],c[maxn]; inline int lowbit(int x) { return x&(-x);
阅读全文
posted @ 2019-09-19 20:36 wyhbadly
阅读(74)
评论(0)
推荐(0)
编辑
2019年9月17日
LCA倍增
摘要: #include <iostream> #include <cstdio> #include <vector> #include <cstring> using namespace std; const int maxn=5e5+10; int depth[maxn],fa[maxn][22],lg
阅读全文
posted @ 2019-09-17 19:58 wyhbadly
阅读(111)
评论(0)
推荐(0)
编辑
2019年9月16日
主席树
摘要: #include <iostream> #include <cstdio> #include <algorithm> #define mid ((l+r)>>1) using namespace std; const int maxn=2e5+10; int cnt=0,sum[maxn<<5],l
阅读全文
posted @ 2019-09-16 21:12 wyhbadly
阅读(118)
评论(0)
推荐(0)
编辑
2019年7月31日
AC自动机代码
摘要: #include <iostream> #include <cstdio> #include <cstring> #include <queue> using namespace std; const int maxn=5e5+10; struct node { int en; int vis[26
阅读全文
posted @ 2019-07-31 15:57 wyhbadly
阅读(245)
评论(0)
推荐(0)
编辑
2018年12月27日
数据结构大实习——二叉排序树
摘要: #include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <windows.h> #include <queue> using namespace std; typedef long lo
阅读全文
posted @ 2018-12-27 15:54 wyhbadly
阅读(135)
评论(0)
推荐(0)
编辑
2018年12月18日
数据结构大实习——二叉树与数
摘要: #include <iostream> #include <cstring> #include <string> #include <cstdlib> #include <queue> #include <cstdio> #include <stack> using namespace std; t
阅读全文
posted @ 2018-12-18 17:29 wyhbadly
阅读(184)
评论(0)
推荐(0)
编辑
2018年12月17日
数据结构大实习——图论
摘要: #include <iostream> #include <cstring> using namespace std; const int maxn=510; const int inf=10000; struct node { int type,len;//type为类型,len为道路长度 }ma
阅读全文
posted @ 2018-12-17 17:19 wyhbadly
阅读(154)
评论(0)
推荐(0)
编辑
数据结构大实习——迷宫路径
摘要: #include <iostream> #include <cstdlib> #include <cstring> using namespace std; const int maxn=500; typedef struct node { int x,y,i; } node; typedef st
阅读全文
posted @ 2018-12-17 16:04 wyhbadly
阅读(270)
评论(0)
推荐(0)
编辑
数据结构大实习——joseph
摘要: #include <iostream> #include <cstdlib> #include <cstring> using namespace std; const int maxn=1e5+10; typedef struct Queue { int front,rear; int num[m
阅读全文
posted @ 2018-12-17 14:34 wyhbadly
阅读(168)
评论(0)
推荐(0)
编辑
下一页