随笔分类 -  CF

摘要:前缀和+离散化+端点维护 为什么现在总是想用树状数组?!!! 服了画蛇添足 离散化数组开两倍空间竟然写成 maxn >> 1 WA了两罚 1 #include<iostream> 2 #include<algorithm> 3 #include<cstdio> 4 #define ll long l 阅读全文
posted @ 2020-10-11 14:17 LegendN 阅读(98) 评论(0) 推荐(0)
摘要:1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 #include<vector> 5 #include<cmath> 6 using namespace std; 7 int n, q; 8 int main(){ 9 阅读全文
posted @ 2020-10-09 20:27 LegendN 阅读(77) 评论(0) 推荐(0)