2019年12月4日
摘要: #define lc(x) (x<<1) #define rc(x) (x<<1|1) struct tree { int num; int l, r; }node[maxn]; inline void build(int x, int l, int r) { node[x].num = 0; no 阅读全文
posted @ 2019-12-04 14:34 thjkhdf12 阅读(178) 评论(0) 推荐(0)
  2019年11月29日
摘要: 1 #pragma warning(disable:4996) 2 3 #include<iostream> 4 #include<string> 5 #include<queue> 6 #include<stack> 7 #include<vector> 8 #include<map> 9 #in 阅读全文
posted @ 2019-11-29 18:24 thjkhdf12 阅读(165) 评论(0) 推荐(0)
摘要: 1 #pragma warning(disable:4996) 2 3 #include<iostream> 4 #include<string> 5 #include<queue> 6 #include<stack> 7 #include<vector> 8 #include<map> 9 #in 阅读全文
posted @ 2019-11-29 18:22 thjkhdf12 阅读(213) 评论(0) 推荐(0)
  2019年11月27日
摘要: int cnt; int h[maxn]; int prep[maxn]; int pree[maxm]; int dis[maxn]; int st = maxn - 2; int ed = maxn - 1; struct Edge { int v, nxt; int w, f; }e[maxm 阅读全文
posted @ 2019-11-27 14:53 thjkhdf12 阅读(122) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<queue> 3 #include<cstring> 4 #include<cstdio> 5 using namespace std; 6 7 #define Design ios::sync_with_stdio(0),cin.ti 阅读全文
posted @ 2019-11-27 14:51 thjkhdf12 阅读(135) 评论(0) 推荐(0)
  2019年11月26日
摘要: 1 #include<iostream> 2 #include<string> 3 #include<queue> 4 #include<stack> 5 #include<vector> 6 #include<map> 7 #include<cstdio> 8 #include<cstdlib> 阅读全文
posted @ 2019-11-26 20:32 thjkhdf12 阅读(104) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<string> 3 #include<queue> 4 #include<stack> 5 #include<vector> 6 #include<map> 7 #include<cstdio> 8 #include<cstdlib> 阅读全文
posted @ 2019-11-26 19:32 thjkhdf12 阅读(97) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<string> 3 #include<queue> 4 #include<stack> 5 #include<vector> 6 #include<map> 7 #include<cstdio> 8 #include<cstdlib> 阅读全文
posted @ 2019-11-26 14:03 thjkhdf12 阅读(86) 评论(0) 推荐(0)
  2019年11月14日
摘要: 1 #include<iostream> 2 #include<vector> 3 #include<algorithm> 4 #include<cstring> 5 #include<cstdio> 6 using namespace std; 7 8 const int INF = 0x3f3f 阅读全文
posted @ 2019-11-14 14:45 thjkhdf12 阅读(161) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<cstring> 3 #include<vector> 4 using namespace std; 5 6 const int maxn = 200010; 7 vector<int>nextval[maxn]; 8 9 inline 阅读全文
posted @ 2019-11-14 11:04 thjkhdf12 阅读(102) 评论(0) 推荐(0)