洛谷 UVA11525 Permutation求 1∼k1\sim k1∼k 的第 nnn 个全排列,其中 n=∑i=1kSi×(k−i)!n=\sum_{i=1}^k S_i \times (k-i)!n=∑i=1kSi×(k−i)!。