Wizard and Date
CodeChefOpen on judge ↗
Problem Description In the kingdom of Qwan there lived a wizard named Omen. Omen has got a date today. He knows that girls love roses so he decided to give her a rose. But today, Omen's garden has no fresh rose so the only option left for Omen is to buy a new rose. He knows that the rose shop is situated on the road R and he has arranged his date on the cafe situated on road D. But he wants to be
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