Adhiraj and Party
CodeChefOpen on judge ↗
Adhiraj again, had a party with his friends. He is completely drunk and as a result of which he thinks of this world as a straight line. Adhiraj is currently at position (x,0) and his home is at position (y,0). Now there is a problem, Adhiraj has forgotten how to walk (he is drunk of course). He thinks that at any moment he can either take 'f' steps forward or 'b' steps backwards. Can Adhiraj reac
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