The Musical Pair
CodeChefOpen on judge ↗
Alice,the Nightingale of Musicland is going to represent her country in World Music Finals. The Rules for the World Music Finals are : 1. The Contestant will sing exactly 2 songs in the competition. 2. The original singers of both the songs selected by the contestant should be different. Alice has a large collection of N songs ( numbered from 1 to N ). However, She does not directly know the o
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