题解
https://www.luogu.com.cn/blog/cff-0102/solution-lgph2
在 https://www.luogu.com.cn/problem/U429848 下载。