Mathematics (JEE)Very hardCodeforces Div2 D

In how many ways can 7 distinct people be assigned to 3 distinct rooms so that every room gets at least 2 people?

  1. A. 630
  2. B. 2187
  3. C. 1806
  4. D. 1803

Correct answer: A. 630

Count assignments where each room receives 2 or more people by checking all 3^7 assignments; the total is 630.

More Permutations, Combinations and Probability questions

Exams that ask this topic