
code. algorithm. math.
difficult.
include other information.
simulation. algorithm. Note.
step 1. 4 from 6.
one male. 2×4=8.
two male. 1×comb(4,2)=6.
step 1. 4 from 6. (8+6=)14.
step 2.
each one is for one target.
each target has one person.
A,B,C,D. a,b,c.
add calculation sequence.
output control.
(1+1+1):1.
step 2.1. 2 person target. 3.
step 2.2. 2 from 4. for 2 person target.
comb(4,2)=6.
step 2.3. 2 person. for 2 target. 2.
step 2. 3×6×2=36.
answer: 14×36=504.
difficult. with a gift.
