唯一的一篇题解https://www.luogu.com.cn/problem/solution/UVA13262
时间复杂度为 m6m^6m6 次方,能过才怪。
此外注意看他其他的题解,基本上就是暴力就网上交,建议严查。