摘要: P1852 "国家集训队]跳跳棋[https://www.luogu.org/problemnew/show/P1852" Description 跳跳棋是在一条数轴上进行的。棋子只能摆在整点上。每个点不能摆超过一个棋子。 我们用跳跳棋来做一个简单的游戏:棋盘上有3颗棋子,分别在a,b,c这三个位置 阅读全文
posted @ 2018-02-05 16:35 sdzwyq 阅读(231) 评论(0) 推荐(0)
摘要: 最近公共祖先(LCA) "https://www.luogu.org/problemnew/show/P3379" define RG register include include using namespace std; const int N=500010; int n,m,s,cnt;// 阅读全文
posted @ 2018-02-05 16:31 sdzwyq 阅读(150) 评论(0) 推荐(0)