← All problemsSign in

Conduct the Election

Country DoraLand is conducting its first elections. It has $N$ political parties. In this country, the election commission will be distributing symbols to the parties. The election commission has $N$ symbols. But the problem is some parties like certain symbols while some don't. Now, the election commission wants to know the number of ways in which it can distribute these $N$ symbols to the $N$ pa

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start