|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초 (추가 시간 없음)||512 MB||132||74||52||54.737%|
You are given two integers, a and b. You want to transform a into b by performing a sequence of operations. You can only perform the following operations:
What is the minimum number of operations you need to transform a into b?
The single line of input contains two space-separated integers a and b (1 ≤ a, b ≤ 109)
Output a single integer, which is the minimum number of the given operations needed to transform a into b.