11729
-
백준 11729번 하노이 탑 이동순서PS 2021. 4. 2. 04:34
www.acmicpc.net/problem/11729 분할하기 #include #include #include using namespace std; int n; int res; vector v; void move(int dep, int from, int to) { if (dep == 1) { res++; v.push_back(make_pair(from, to)); return; } int tmp; for (int i = 1; i > n; move(n, 1, 3)..