Skip to main content

洛谷 UVA11525 Permutation

1k1\sim k 的第 nn 个全排列,其中 n=i=1kSi×(ki)!n=\sum_{i=1}^k S_i \times (k-i)!