标签:algorithm codeforces dp 快速幂
codeforces 514E Darth Vader and Tree (dp+快速幂)
原文地址:http://blog.csdn.net/whai362/article/details/43851385