线段树
KLFTESPACE
这个作者很懒,什么都没留下…
展开
-
敌兵布阵 HDU-1166
参见https://blog.csdn.net/flushhip/article/details/79165701https://blog.csdn.net/forever_kirito/article/details/78694203//树状数组#include<iostream>#include<cstdio>#include<algor...原创 2019-03-19 21:42:02 · 196 阅读 · 0 评论 -
P3372 【模板】线段树 1
题#include<cstdio>#include<iostream>using namespace std;typedef long long LL;LL n, m, ans, x, y, op, val;//因为下面有的函数需要用到x,y,val值,懒得传参,故直接写为全局变量 const int N = 100000; struct N...原创 2019-04-15 17:02:56 · 138 阅读 · 0 评论 -
P1198 [JSOI2008]最大数 (WA)
(WA) .....暂时不知道哪错了,先贴上来,有机会改下。#include<cstdio>#include<iostream>using namespace std;const int inf = -0x3f3f3f3f;typedef long long LL;LL n, m, ans, x, y, val, t = 0;//因为下面有的函数需...原创 2019-04-20 22:40:54 · 143 阅读 · 0 评论 -
Just a Hook (WA)
//目前还不知道哪错了..............#include<cstdio>#include<iostream>using namespace std;typedef long long LL;LL n, m, ans, x, y, op, val;//因为下面有的函数需要用到x,y,val值,懒得传参,故直接写为全局变量 const in...原创 2019-04-22 14:29:46 · 127 阅读 · 0 评论 -
Mayor's posters POJ2528
喜欢他的离散化方法,但是,看别人的解释他的方法有问题就是131 101 46 10结果是2,但实际结果应该是3,解决方法得等我勤快起来才能写了.....转自https://blog.csdn.net/u013569304/article/details/51276536//线段树D #include<iostream>#i...转载 2019-04-24 17:53:08 · 134 阅读 · 0 评论