摘要: 一. 何谓可变参数int printf( const char* format, ...); 这是使用过C语言的人所再熟悉不过的printf函数原型,它的参数中就有固定参数format和可变参数(用”…”表示). 而我们又可以用各种方式来调用printf,如:printf("%d",value);  阅读全文
posted @ 2020-08-07 20:52 wyhbadly 阅读(433) 评论(0) 推荐(0) 编辑
摘要: #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) 编辑
摘要: #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) 编辑
摘要: #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) 编辑
摘要: #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) 编辑
摘要: #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) 编辑
摘要: #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) 编辑
摘要: #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) 编辑
摘要: #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) 编辑