Minerva and her puzzle
CodeChefOpen on judge ↗
Minerva, a mischievous cat dreams all the time. In one of her lucid dreams: Minerva is at point (1,1) of the lattice(x,y) with x , y positive integers. She moves as follows. At any move, she may double one coordinate, or she may subtract the smaller coordinate from the larger. Your task is to report if the final state (x,y) after some moves can be reached or not. Input The first line of the in
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