摘要: 每个节点都有唯一后继。所以,可以用倍增求后缀数组。 节点的前趋个数可能不唯一,所以我们可以用 来记录每个节点的前趋。 code 命真大! include include include include using namespace std; const int N=150002; int T, n 阅读全文
posted @ 2018-05-17 03:28 RUSH_D_CAT 阅读(242) 评论(0) 推荐(0) 编辑