计算排列数 P(n,r) 和组合数 C(n,r)
从 n 个不同元素中取出 r 个元素进行排列(考虑顺序)的方法数。
公式: P(n,r) = n! / (n-r)!
P(n,r) = n! / (n-r)!
例如: 从10人中选3人站成一排,有 720 种排法。