The one with Rachels Obsession
CodeChefOpen on judge ↗
Everyone knows Rachel is not good with numbers, whenever she has such problems, she gives them to Chandler. Currently Rachel has set of numbers from 1...2*n, and they are available to her in n groups [ (a1,b1),(a2,b2),(a3,b3),.......,(an,bn) ], She has some problems to be solved and so she is waiting for Chandler and she is bored, So she made herself a game, She calls a sequence of pairs cool if
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