Problem
There is a frog standing on a number line. Initially, it's located at position $A$.
It plans to jump to position $B$. To do this, it can repeat the following operation multiple times:
- Jump to the left or right by $1$ unit.
Find the minimum number of jumps for the frog to arrive position $B$.
Input
The only line consists of $2$ integers $A$ and $B$.
Output
The minimum number of operations to arrive $B$.
Sample Test Cases
| Input | Output | |
|---|---|---|
| 5 3 | 2 | |
| 4 10 | 6 |
Scoring: Per Subtask
Authored by s22r42
Appeared in 2026 Mini Comp 3