Hall Allocation
CodeChefOpen on judge ↗
The hall allocation process has just started in IIT Kharagpur, and you are in charge of assigning rooms to the students. There are $\textit{\textbf{n}}$ students who need to be accommodated, and each student has a CGPA score. There are also $\textit{\textbf{m}}$ pairs of ***close friends*** among the students, and you know which students are ***close friends*** with each other. A room is called *
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.
Sign in to chat with the tutor and save your progress.
Sign in to start