سوال ۱۱۳ کنکور ارشد علوم کامپیوتر ۱۴۰۲
شخصی کودک و و و و و شش جایزه دارد که میخواهد این جوایز را به کودکان هدیه دهد ولی فقط میتوان به کودک هدیه داد. هر جایزه را میتوان به حداکثر یک کودک هدیه داد و هر کودک حداقل یک جایزه میگیرد. اگر از یا بدش میآید، از بدش میآید و از و و بدش میآید. اگر تعداد حالاتی باشد که میتوان سه جایزه را از بین جوایز با شرایط فوق به کودک اختصاص داد، کدام گزینه درست است؟
پاسخ صحیح: گزینهٔ A —
We must choose of the children and give each of them one distinct prize out of , so that no child receives a prize they dislike. So counts injective assignments (a system of distinct representatives) of prizes to a chosen trio of children, respecting the forbidden prizes.
Allowed prizes per child (out of ):
| Child | Forbidden | Allowed prizes | Count |
|---|---|---|---|
| — | |||
| — |
Children and are unrestricted; only , , carry constraints. There are possible trios. For each trio we count assignments of distinct prizes by placing the most restricted child first.
Method (place restricted children first). For a trio, pick the prize for the tightest child, then the next, then the freest, each time subtracting the prizes already used. For example, trio : assign first ( choices), then from its allowed minus possibly the one took, then from the remaining. Counting carefully (or by the permanent of the allowed-matrix) gives the per-trio totals:
| Trio | Ways |
|---|---|
For instance, has only restricted: total ordered injections of distinct prizes to children is ; subtract those giving prize to (), leaving . And : total minus the that hand a forbidden or , giving .
Sum:
Since , the answer is option 1.
Pitfall: "Each child gets at least one prize" is automatic here — exactly prizes go to exactly children, one each. Don't drift into distributing all six prizes; the question asks for assigning three prizes (a one-to-one matching), so it is a counting-with-forbidden-positions problem, not a surjection count.