← All problemsSign in

Girls And Boys

The college is divided into 2 teams, that are the Red team and Blue team. The division is done such that each team has the equal number of girls and boys. The red team has $2*N$ members in total, while the Blue team has $2*M$ members. Both the teams were asked to stand in their separate queues. A queue is called $good$ when the **number of girls before the boys are always greater tha

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