![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
块状树
里阿奴摩西
这个作者很懒,什么都没留下…
展开
-
[块状树] BZOJ 3720 Gty的妹子树
动态询问子树问题 树分块! #include #include #include #include using namespace std; inline char nc() { static char buf[100000],*p1=buf,*p2=buf; if (p1==p2) { p2=(p1=buf)+fread(buf,1,100000,stdin); if (p1=原创 2016-07-12 19:30:15 · 489 阅读 · 0 评论 -
[块状树] BZOJ 3731 Gty的超级妹子树
3720的升级版 就是加了删边 把块拆开重建 然后卡内存 开vector 然后块的大小开大点 但也不能太大 不然询问太多T飞 #include #include #include #include #include #define dprintf(...) fprintf(stderr,__VA_ARGS__) using namespace std; inline char n原创 2016-07-12 19:32:40 · 609 阅读 · 0 评论