摘要:
#include<cstdio> #include<map> #include<algorithm> using namespace std; const int N=101010; struct Node { double x,yl,yh; int w; bool operator<(Node t 阅读全文
posted @ 2020-02-11 21:13
晴屿
阅读(151)
评论(0)
推荐(0)
摘要:
参考 https://www.cnblogs.com/null00/archive/2012/04/22/2464876.html #include <stdio.h> #include <algorithm> #define LEN 10000 using namespace std; struc 阅读全文
posted @ 2020-02-11 20:36
晴屿
阅读(154)
评论(0)
推荐(0)
摘要:
//永远只考虑根节点的信息,说明在query时不会调用pushdown //所有操作均是成对出现,且先加后减 // #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> #include <vect 阅读全文
posted @ 2020-02-11 16:33
晴屿
阅读(136)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <algorithm> #include <iostream> #include <string.h> #include <set> #include <map> #include <vector> #include <queue> #incl 阅读全文
posted @ 2020-02-11 13:58
晴屿
阅读(278)
评论(0)
推荐(0)
摘要:
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int INF=0x3f3f3f3f; const int N=50000+10; struct 阅读全文
posted @ 2020-02-11 13:23
晴屿
阅读(106)
评论(0)
推荐(0)
摘要:
#include<iostream> #include<cstring> #include<cstdio> #include<math.h> #include<algorithm> using namespace std; typedef long long ll; const int N=1e5+ 阅读全文
posted @ 2020-02-11 10:14
晴屿
阅读(133)
评论(0)
推荐(0)
摘要:
#include<stdio.h> #include<iostream> #include<string.h> #include<algorithm> using namespace std; const int MAXN=8010; struct Node { int l,r; int color 阅读全文
posted @ 2020-02-11 09:43
晴屿
阅读(121)
评论(0)
推荐(0)
摘要:
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; #define MAXN 50010 int n , q; int h[MAXN]; struct Node{ 阅读全文
posted @ 2020-02-11 09:39
晴屿
阅读(125)
评论(0)
推荐(0)
摘要:
#include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; typedef long long ll; const int N=1e5+10; struct node{ 阅读全文
posted @ 2020-02-11 08:53
晴屿
阅读(149)
评论(0)
推荐(0)
摘要:
//线段树区间覆盖 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; const int N=100010; int flag; struct node{ in 阅读全文
posted @ 2020-02-11 07:50
晴屿
阅读(147)
评论(0)
推荐(0)
摘要:
//add,懒标记,给以当前节点为根的子树中的每一个点加上add(不包含根节点) // #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> using namespace std; typedef 阅读全文
posted @ 2020-02-11 06:47
晴屿
阅读(101)
评论(0)
推荐(0)