https://school.programmers.co.kr/learn/courses/30/lessons/12985 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr #include using namespace std;int solution(int n, int a, int b){ int answer = 0; while(a != b) { // %2 를 더해준 이유는 홀수일 경우를 위해서이다. a = (a/2) + (a%2); b = (b/2) + (b%2); answer++; } return answer;} GitHub :..