摘要: 传送门 模板题一道,1A。 ——代码 1 #include <cstdio> 2 #include <algorithm> 3 #define ls son[now][0], l, mid 4 #define rs son[now][1], mid + 1, r 5 6 using namespac 阅读全文
posted @ 2017-04-24 20:33 zht467 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 传送门 又是一道主席树模板题,注意数组从0开始,还有主席树耗费空间很大,数组开大点,之前开小了莫名其妙TLE。QAQ ——代码 1 #include <cstdio> 2 #include <cstring> 3 #include <algorithm> 4 #define ls son[now][ 阅读全文
posted @ 2017-04-24 16:03 zht467 阅读(106) 评论(0) 推荐(0) 编辑