X and Y
CodeChefOpen on judge ↗
The trick is simple. It's Valentine's Day. You're here to code. Why not help a guy fix a date for him? :D This is a very geeky situation. The guy and girl are both good friends. They like each other as well. Strangely, both of them are programmers too! :P Geeky situation!? Well yes, lemme explain. The guy finally asks her out on Valentine's Day, i.e. today. She responds “I am stuck in a question
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