Epiphany
CodeChefOpen on judge ↗
Scube loves Biryani .Shop of Biryani is situated at position 1 (on X-axis) and Scube is standing at position P (on X-axis).In one step Scube can do the following things-. Let assume currently he is standing at position M 1. He can reach to the position M+1 in one step. 2. He can reach to the position M-1 in one step. 3. If M is divisible by 3 the he can reach to the position M/3 in one step.
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