固定 AAA 后对 XXX 的 n−3n-3n−3 种选择求和,再对 AAA 求和。每条对角线被计算四次,每条边被计算 2(n−3)2(n-3)2(n−3) 次,因此 4d>2(n−3)p4d>2(n-3)p4d>2(n−3)p。