DILEMMA
CodeChefOpen on judge ↗
A coding competition is in its special round. The number of students in each team is 'n' and the number of teams in this special round is not known. Each team is required to send forth two of their coders to participate in this special round. The selection of the two members is to be done by the team's coach (there is one coach per team exclusive of the n members). Each member of the team is re
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