上一页 1 ··· 8 9 10 11 12
摘要: https://www.luogu.com.cn/problem/P3373#include<bits/stdc++.h> #define N 100005 #define endl '\n' #define _for(i,a,b) for(int i=a;i<b;i++) using namesp 阅读全文
posted @ 2020-02-22 02:08 SunCY 阅读(178) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.com.cn/problem/P3372 #include<bits/stdc++.h> #define N 500005 #define endl '\n' #define _for(i,a,b) for(int i=a;i<b;i++) using names 阅读全文
posted @ 2020-02-22 00:47 SunCY 阅读(147) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.com.cn/problem/P3368 上代码,对比一下可以发现,区间修改单点查询 和 单点修改区间查询 的add函数和search函数刚好是反的 #include<bits/stdc++.h> #define N 500005 #define endl '\n 阅读全文
posted @ 2020-02-21 23:45 SunCY 阅读(501) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.com.cn/problem/P3374 单点修改,区间查询,上代码 1 #include<bits/stdc++.h> 2 #define N 500005 3 #define endl '\n' 4 #define _for(i,a,b) for(int i= 阅读全文
posted @ 2020-02-21 23:17 SunCY 阅读(225) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12