← All problemsSign in

Couple Dance

As we all know ISM is converted into IIT. So to celebrate this ecstasy seniors decided to organize a dance concert in which couples will dance together. There are N boys and N girls numbered from 1 to N. Seniors ask them to form groups. Now some among them are failed to form groups due to some reasons but they have keen desire to participate. So seniors decided a strategy that only people of diffe

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