![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LJR
MyHappinessIsAll
ACM菜鸡老年队训练实录
展开
-
POJ-1436Horizontally Visible Segments
能用线段树做,但是n3也过 #include #include #include #include using namespace std; struct edge { int y1,y2,x,id; }E[8008]; int node[8008*8]; bool ok[8008][8008]; inline bool cmp(edge a,edge b) { retu原创 2017-03-20 16:09:48 · 219 阅读 · 0 评论 -
CodeForces-771D-Bear and Company
我的博客转载 2017-03-22 10:50:04 · 689 阅读 · 1 评论 -
CF791D-Bear and Tree Jumps
要点在注释里,写题确实应该先想,如果想的时间够多了,写起来很快。 #include #include #include using namespace std; int N,k; long long ans = 0; // 答案会爆掉 long long int sum[222222],num[222222][6],in[222222]; //sum子树节点个数 num[u][i] u原创 2017-03-20 17:23:03 · 329 阅读 · 0 评论