You can
put this solution on YOUR website! .
Different signals corresponds to different patterns (ordered sequences) of colored flags,
and repeating is prohibited.
"Using at least 3 distinct flags" means using 3, or 4, or 5 flags.
The number of different signals is
5*4*3 + 5*4*3*2 + 5*4*3*2*1 = 300. ANSWER
Solved.