排列组合计算器

计算排列数 P(n,r) 和组合数 C(n,r)

💡 提示:P(n,r) = n!/(n-r)!,C(n,r) = n!/(r!(n-r)!)。n 和 r 必须为非负整数,且 n ≥ r。