Professional Documents
Culture Documents
W02H03 – Hoán vị
Code thầy cho trước:
Đề bài:
Penguins love order and stones. They prefer to arrange their stones. The colony has collected a lot of
n many stones. k of these stones are identical (which means n ≥ k ≥k≥1). You now have to help the
penguins to figure out how many ways there are to line up the stones. The solution is calculated by
!!
the formula .
#!
Ví Dụ: