College And Gift
CodeChefOpen on judge ↗
Problem description. The college has to give some gifts to the students on the occasion of the tech fest. But as college does not want to spend much money on it, it is intended to give gifts to as few students as possible. But it has to give gift to at least one student, it cannot give gift to none. But students has strong love for their friends and for a pair of students A and B, a student A wil
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