Friends with Benefits
CodeChefOpen on judge ↗
There are three friends, Ram, Shaam and Geeta. Ram likes Geeta but doesn’t know her address. Shaam is a good friend of Ram, and he knows the address of Geeta. He sends Shaam her address in form of coordinates represented as (X2, Y2). Along with the address, he has also sent Ram the way to reach Geeta’s house. Since he don’t want anyone else to get to know what they are sending each other, he decid
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