Number Reachability
CodeChefOpen on judge ↗
You are given $3$ integers, $x$, $a$, and $b$. Determine if it is possible to go from $a$ to $b$ in any number of steps (possibly none) if you can only move ahead by $x$ or $x+1$ per step. ###Input: - First line will contain $T$, number of testcases. Then the testcases follow. - Each testcase contains a single line of input, three integers $x,a,b$. ###Output: - Answer every testcase in a new
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