![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
文章平均质量分 88
zsmj_sy
QQ 2439380624
展开
-
板子-线段树
#include <iostream>#include <algorithm>#include <cstring>const int maxn=50002*4;using namespace std;int tree[maxn];int lazy[maxn];void push_up(int root){ tree[root]=tree...原创 2018-05-18 10:18:51 · 198 阅读 · 0 评论 -
Codeforces Round #470ABC 题解
A - Protect Sheep CodeForces - 948A (暴力)水题不贴代码了,暴力判断羊的相邻的四个点有没有狼,如果没有的话暴力把所有空的点填上狗- -B - Primal Sport CodeForces - 948B (数学)Alice and Bob begin their day with a quick game. They first choose a startin...原创 2018-04-27 21:56:31 · 313 阅读 · 0 评论