摘要: UsoperantoTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://www.bnuoj.com/v3/contest_show.php?cid=6866#problem/JDescriptionUsoperanto is an artificial ... 阅读全文
posted @ 2015-10-02 21:30 qscqesze 阅读(419) 评论(0) 推荐(0) 编辑
摘要: Do use segment treeTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://www.bnuoj.com/v3/problem_show.php?pid=39566DescriptionGiven a tree withn(1 ≤ n ≤ 2... 阅读全文
posted @ 2015-10-02 21:19 qscqesze 阅读(314) 评论(0) 推荐(0) 编辑
摘要: //点和线段树都从1开始//边使用vectorvector G[maxn];int dfs_clock,que[maxn*2],num[maxn],iii[maxn],b[maxn],a[maxn],top[maxn],deep[maxn],fa[maxn],idx[maxn];//采用静态链表//... 阅读全文
posted @ 2015-10-02 21:10 qscqesze 阅读(401) 评论(0) 推荐(0) 编辑