시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 (추가 시간 없음) | 512 MB | 355 | 202 | 156 | 55.914% |
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.
103 27
4
3 8
5
ICPC > Regionals > North America > Southeast USA Regional > 2019 Southeast USA Regional Programming Contest > Division 2 D번
ICPC > Regionals > North America > Pacific Northwest Regional > 2019 ICPC Pacific Northwest Region > Division 1 D번
ICPC > Regionals > North America > Pacific Northwest Regional > 2019 ICPC Pacific Northwest Region > Division 2 Q번