백준: A -> B #include #include #include #include #include using namespace std; long long a, b; int cnt = 1;//연산의 최솟값을 저장할 변수 void dfs(long long num) { stacks;//stack 선언 s.push(make_pair(num, cnt));//stack에 a와 cnt를 push while (!s.empty())//stack이 비어있지않다면 반복 { long long x = s.top().first;//stack의 top을 각각 저장 int y = s.top().second; s.pop();//저장한 값 stack에서 삭제 long long x1 = x * 2;//2를 곱하는 변수 long long..