[HNOI2011]卡农 的方法

pidan / 2023-08-06 / 原文

去掉重复 xx 的方法:从前 \(i-1\) 个里面选出一个 xx \(j\),钦定与其重复,方案数是 \(f_{i-2}\times(i-1)\times(\text{xx 的方案数}-(i-2))\)