Codeforces Round #291 (Div. 2)E. Darth Vader and Tree——dp+矩阵快速幂

http://codeforces.com/contest/514/problem/E

有一棵无限的树,每个节点都有n个孩子,求从根节点开始走,距离在x以内的节点数

你可能感兴趣的:(Codeforces Round #291 (Div. 2)E. Darth Vader and Tree——dp+矩阵快速幂)